失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > centos7 安装Google Chrome浏览器

centos7 安装Google Chrome浏览器

时间:2019-05-12 16:32:37

相关推荐

centos7 安装Google Chrome浏览器

在linux centos7下面进行web开发,免不了需要chrome浏览器,centos7默认只有firefox浏览器,下面是安装chrome的步骤

从/intl/zh-CN_ALL/chrome/下载rpm包,google-chrome-stable_current_x86_64.rpm打开命行窗口这里要提醒一下,在centos7下面安装rpm包, 是使用yum install这个命令,它会帮忙把rpm包需要的依赖包也安装进来运行 yum installgoogle-chrome-stable_current_x86_64.rpm这时可以看到屏幕在不停翻滚,下载安装依赖包,要求输入y/n这时一定要输入y最后提示安装完成,并且同时把安装了的依赖包也用列表显示出来

Installed:

google-chrome-stable.x86_64 0:73.0.3683.103-1

Dependency Installed:

libXScrnSaver.x86_64 0:1.2.2-6.1.el7

libappindicator-gtk3.x86_64 0:12.10.0-13.el7

libdbusmenu.x86_64 0:16.04.0-4.el7

libdbusmenu-gtk3.x86_64 0:16.04.0-4.el7

liberation-fonts.noarch 1:1.07.2-16.el7

liberation-narrow-fonts.noarch 1:1.07.2-16.el7

libindicator-gtk3.x86_64 0:12.10.1-6.el7

redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1

redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1

spax.x86_64 0:1.5.2-13.el7

在左上角的applications--internet里可以看到Google Chrome图标了。

在root 帐户下面不能直接运行Chrome, 要在命令行下面运行#google-chrome --no-sandbox

或者在/usr/share/applications 里面找到chrome的图标, 打开属性,把/usr/bin/google-chrome-stable %U 改成/usr/bin/google-chrome-stable --no-sandbox %U,就可以直接点击图标运行 chrome浏览器了。

如果觉得《centos7 安装Google Chrome浏览器》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。