CentOS 7安装并启动Google浏览器(★firecat亲测有效★) 您所在的位置:网站首页 谷歌浏览器并安装在哪里找出来 CentOS 7安装并启动Google浏览器(★firecat亲测有效★)

CentOS 7安装并启动Google浏览器(★firecat亲测有效★)

2024-07-13 14:04| 来源: 网络整理| 查看: 265

1. 安装

考虑到国内无法访问Google,所以需要自己配置yum源,在目录 /etc/yum.repos.d/ 下新建google-chrome.repo文件,

cd /ect/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

默认方法1:安装google chrome浏览器:

yum -y install google-chrome-stable

方法2【推荐】:Google官方源可能在中国无法使用,导致安装失败或者在国内无法更新,可以添加以下参数来安装:

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

安装路径是:\opt\google\chrome

2、启动运行(默认情况下,root用户是无法启动的,需要添加参数)

(1)终端方式

进入\opt\google\chrome,root用户下,必须带上参数--no-sandbox,否则运行不起来。

[root@localhost chrome]# ./google-chrome [5317:5317:0923/125011.751607:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. [root@localhost chrome]# ./google-chrome --no-sandbox

(2)图形界面方式

root用户下,找到/usr/share/applications/Google Chrome.desktop,鼠标右键弹出菜单->属性->命令,

由原来的字符串/usr/bin/google-chrome-stable %U修改为:

/usr/bin/google-chrome-stable %U --no-sandbox

然后,把文件Google Chrome.desktop拷贝一份到桌面,运行它即可。



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有