更换阿里源,详见:https://developer.aliyun.com/mirror/centos
下载安装chrome
1 yum install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
终端运行
1 google-chrome
错误提示为:
Running as root without --no-sandbox is not supported.
解决办法:
(1)切换到普通用户;
(2)root用户编辑chrome快捷方式
1 vi /usr/share/applications/google-chrome.desktop
"i"键进入编辑模式,找到
Exec=/usr/bin/google-chrome-stable %U
修改为
Exec=/usr/bin/google-chrome-stable --no-sandbox %U
“esc”键退出编辑模式,“:wq”保存并退出