全球主机交流论坛

标题: chrome谷歌浏览器在debian中无法打开的解决方法 [打印本页]

作者: hoodhmy    时间: 2023-8-23 11:18
标题: chrome谷歌浏览器在debian中无法打开的解决方法
找了挺久,在这里记录一下解决方法

debian安装好chrome之后,在root用户下无法打开

需要修改/usr/bin/google-chrome这个文件
在文件中找到exec -a "$0" "$HERE/chrome" "$@"这行
然后在后面加--no-sandbox

就是改成exec -a "$0" "$HERE/chrome" "$@" --no-sandbox
然后保存
就可以打开chrome了

参考网页:
https://www.itzgeek.com/how-tos/linux/centos-how-tos/how-to-run-google-chrome-as-root-fedora-16-centos-6-rhel-6.html

这是我目前找到最简单的方法了
不知道大佬们还有其他好的方法吗?




欢迎光临 全球主机交流论坛 (https://91ai.net/) Powered by Discuz! X3.4