Centos7安装谷歌浏览器
使用root用户登陆系统
vim /etc/yum.repos.d/google-chrome.repo
添加
[google-chrome]
name=google-chrome
baseurl=https://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
保存
yum install -y google-chrome-stable --nogpgcheck
在应用程序那块就会有浏览器图标
复制图标到桌面
cp /usr/share/applications/google-chrome.desktop /root/桌面
然后双击复制出来的文件,选 “Trust and Launch” ,文件变为Google Chrome的图标,如果双击没有反应,
则在图标属性,启动命令后面添加 --no-sandbox
/usr/bin/google-chrome-stable %U --no-sandbox