centos7 google | 您所在的位置:网站首页 › linux卸载chrome › centos7 google |
获取chrome安装包
➜ ~ wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
获取不到可手动下载安装包,并上传到服务器 安装chrome ➜ ~ rpm -ivh google-chrome-stable_current_x86_64.rpm如果提示有依赖未安装,yum install 依赖,然后再安装 一些必要的库 ➜ ~ yum install mesa-libOSMesa-devel gnu-free-sans-fonts wqy-zenhei-fonts 卸载chrome ➜ ~ yum remove google-chrome-stable.x86_64 -yyum remove google-chrome,按Tab自动补全即可 启动点击chrome无法启动,反应一会儿就不反应了 进入chrome安装目录(命令行) ➜ ~ cd /opt/google/chrome ➜ ~ google-chrome [17124:17124:0514/113710.207324:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. ➜ ~ google-chrome --no-sandbox (google-chrome:17148): Gtk-WARNING **: 11:38:29.077: cannot open display: [root@bwlu chrome]# [0514/113829.116958:ERROR:nacl_helper_linux.cc(310)] NaCl helper process running without a sandbox! Most likely you need to configure your SUID sandbox correctly如果是在图形界面的Terminal,此时会弹出提示框提示你输入密码和确认密码 如果是在xshell中直接输入两遍密码就行了(还不清楚这步的意义,防护keystring) 此时,在图形界面,打开Terminal命令行 ➜ ~ cd /opt/google/chrome ➜ ~ google-chrome --no-sandboxchrome启动成功 但是需要每次都输入 --no-sandbox ➜ ~ cd /opt/google/chrome ➜ ~ vim google-chrome # exec -a "$0" "$HERE/chrome" "$@" 改为 exec -a "$0" "$HERE/chrome" "$@" --no-sandbox保存退出,输入google-chrome就可以启动了 此时点击,Applications下的chrome图标也可以启动了 |
CopyRight 2018-2019 实验室设备网 版权所有 |