您的位置:首页 > 运维架构 > Linux

centos7安装chrome谷歌浏览器

2017-01-21 10:58 453 查看
wget http://chrome.richardlloyd.org.uk/install_chrome.sh
chmod u+x install_chrome.sh

./install_chrome.sh -s(stable稳定版本)

启动chrome google-chrome or ./install_chrome.sh

更新chrome yum update google-chrome-stable

删除chrome yum remove google-chrome-stable or ./install_chrome.sh -u

遇到下载超时,失败修改需要修改下载地址请编辑install_chrome.sh

其中的http://omahaproxy.appspot.com改为https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

如果dl.google.com不同,可以通过修改/etc/hosts文件夹添加

xxx.xxx.xxx.xxx dl.google.com

用非root用户运行google-chrome

如果此方法不行,可以采用下面方法

前提能访问http://dl.google.com 可在/etc/hosts下面添加一条、

216.58.200.192          dl.google.com

touch /etc/yum.repos.d/google-chrome.repo

gedit /etc/yum.repos.d/google-chrome.repo

输入

[google-chrome]

name=google-chrome - \$basearch

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

保存退出

yum install google-chrome-stable
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: