Centos7 安装谷歌浏览器

Centos7 安装谷歌浏览器
配置下载yum源
cd /etc/yum.repos.d
vim google-chrome.repo
[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

安装

yum -y install google-chrome-stable --nogpgcheck

 复制谷歌浏览器图标到桌面方便打开

cd /usr/share/applications/
cp  /usr/share/applications/google-chrome.desktop  /root/Desktop

 在linux环境下:首次打开谷歌浏览器需要做如下配置  

解决google-chrome无法启动的问题

问题表现:

双击Google Chrome图标无反应,无法打开浏览器。方法一:

桌面图标右击-->属性-->启动命令后添加“--no-sandbox”
 
即:/usr/bin/google-chrome-stable %U --no-sandbox

方法二

vim  /usr/share/applications/google-chrome.desktop
 
修改:Exec=/usr/bin/google-chrome-stable %U
 
为:Exec=/usr/bin/google-chrome-stable %U --no-sandbox

cp  /usr/share/applications/google-chrome.desktop  /root/Desktop

 

 

posted @ 2019-10-21 10:38  火星小编  阅读(312)  评论(0)    收藏  举报