CentOS8—root用户运行chrome提示:Running as root without --no-sandbox is not supported.


更换阿里源,详见: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”保存并退出

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM