jing-tian

1.安装浏览器

# apt-get install gonme

# apt-get update 

# apt-get install google-chrome-stable

 

2.启动Chrome浏览器

# google-chrome

这时会报错:
[31560:31560:0207/085601.085852:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See 

# google-chrome --no-sandbox    //之后重启系统

 

3.设置快捷方式 
# whereis google-chrome
 google-chrome: /usr/bin/google-chrome /usr/share/man/man1/google-chrome.1.gz
# vim /usr/bin/google-chrome

 

将 exec -a "$0" "$HERE/chrome" "$@"  改为

exec -a "$0" "$HERE/chrome" "$@" --user-data-dir --no-sandbox

以后只要 #google-chrome 就可以打开Chrome了

虽然也会弹出一堆错误,但是终于成功打开了!!

 

分类:

技术点:

相关文章:

  • 2021-11-25
  • 2022-12-23
  • 2022-01-08
  • 2021-11-24
  • 2022-02-16
  • 2022-02-17
  • 2022-01-10
  • 2022-02-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
  • 2022-02-27
  • 2021-11-28
  • 2022-01-26
相关资源
相似解决方案