CentOS7安装谷歌浏览器

  由于工作的需要某个自动化测试平台需要调用谷歌浏览器而不支持firefox,因此需要安装google-chrome谷歌浏览器,上网查了一下方法也比较麻烦,成功率也不高再此提供一个亲测可用的方法!

 

系统信息

[[email protected]_test autoTest]# cat /etc/redhat-release

CentOS Linux release 7.7.1908 (Core)

谷歌浏览器rpm包下载地址:

https://link.zhihu.com/?target=https%3A//dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

 

谷歌浏览器一步安装命令:

上存包后进行一键yum安装并解决谷歌浏览器若干个依赖的问题:

yum install google-chrome-stable_current_x86_64.rpm -y

 

安装完成后可在界面上执行命令:/usr/bin/google-chrome-stable --no-sandbox

启动谷歌浏览器(要主机本机的selinux是否处于关闭状态):

 

CentOS7安装谷歌浏览器