1.安装浏览器

# apt-get install gonme

# apt-get update 

# apt-get install google-chrome-stable

 

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

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了

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

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄