Centos 在线安装 谷歌浏览器
1. 安装
a. 增加google仓库(修改或增加google-chrome.repo 文件)
1)编辑文件
vi /etc/yum.repos.d/google-chrome.repo
2)将以下内容拷到上述文件
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
b. 执行在线安装指令
yum -y install google-chrome-stable --nogpgcheck
等待运行完成,命令窗口出现: Complete! 即说明安装成功
– 安装成功后可以去application(即“应用程序”)中,能看到安装成功的google浏览器
2. 运行
桌面端双击 不能打开问题解决:
a. 从application中将浏览器拖动到桌面上
b. 在桌面上右键 “属性”–> “基本”–> “命令”
在 %U 后面增加: --no-sandbox,即:
# 将
/usr/bin/google-chrome-stable %U
#改为
/usr/bin/google-chrome-stable %U --no-sandbox
具体如图: