1. 首页
  2. 杂记

CentOS7.0如何安装Chrome浏览器

博主昨天把php的环境装完了,今天开始简单的写了写代码试了试。不过对火狐的缓存问题,感到很不舒服,还是换成Chrome吧,不过Chrome不再支持CentOS等系统了,所以需要花点功夫了。

在网上找了找(原文地址:http://www.tecmint.com/install-google-chrome-on-redhat-centos-fedora-linux/),发现按照如下的步骤尽心即可:

第一步:

[root@localhost ~]# wget http://chrome.richardlloyd.org.uk/install_chrome.sh

这时会出现如下内容:

Loaded plugins: fastestmirror, langpacks
base                                                     | 3.6 kB     00:00     
extras                                                   | 3.4 kB     00:00     
updates                                                  | 3.4 kB     00:00     
updates/7/x86_64/primary_db                                | 3.2 MB   00:00     
Loading mirror speeds from cached hostfile
 * base: mirrors.skyshe.cn
 * extras: mirrors.skyshe.cn
 * updates: mirrors.nwsuaf.edu.cn
No package google-chrome-statble available.
Error: Nothing to do
[root@localhost ~]# wget http://chrome.richardlloyd.org.uk/install_chrome.sh
--2016-03-24 22:53:46--  http://chrome.richardlloyd.org.uk/install_chrome.sh
Resolving chrome.richardlloyd.org.uk (chrome.richardlloyd.org.uk)... 193.110.246.53
Connecting to chrome.richardlloyd.org.uk (chrome.richardlloyd.org.uk)|193.110.246.53|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 76921 (75K) [application/x-sh]
Saving to: ‘install_chrome.sh’

100%[======================================>] 76,921      52.9KB/s   in 1.4s   

2016-03-24 22:53:50 (52.9 KB/s) - ‘install_chrome.sh’ saved [76921/76921]

第二步:

[root@localhost ~]# chmod u+x install_chrome.sh 
[root@localhost ~]#  ./install_chrome.sh

注意这两行命令之间不会出现什么反馈的内容,就是改变一下权限

接下来会出现如下内容

Google Chrome Installer 7.30 on the x86_64 platform
(C) Richard K. Lloyd 2016 <rklloyd@gmail.com>

*** Creating temporary directory /tmp/chrome_install ...
*** Changing working directory to /tmp/chrome_install ...
*** Checking for an update to install_chrome.sh ...

*** Downloading version.dat (please wait) ...

--2016-03-24 22:54:42--  http://chrome.richardlloyd.org.uk/version.dat
Resolving chrome.richardlloyd.org.uk (chrome.richardlloyd.org.uk)... 193.110.246.53, ::
Connecting to chrome.richardlloyd.org.uk (chrome.richardlloyd.org.uk)|193.110.246.53|:80... connected.
HTTP request sent, awaiting response... 200 OK

***中间省略n字
Preparing...                          ################################# [100%]
Updating / installing...
   1:google-chrome-stable-49.0.2623.87################################# [100%]
Redirecting to /bin/systemctl start  atd.service

*** Google Chrome was installed successfully ...

*** /opt/google/chrome tree contains 89 files totalling 177 MB ...
*** /tmp/chrome_install tree contains 1 files totalling 46 MB ...

Google Chrome was installed successfully.
Please run the browser via the 'google-chrome' command as a non-root user.

To update Google Chrome, run "yum update google-chrome-stable" or
simply re-run this script with "./install_chrome.sh".

To uninstall Google Chrome,
run "yum remove google-chrome-stable " or "./install_chrome.sh -u".

这也就表示安装成功了

最后

大家会发现很神奇的事情,在root账户下无法打开chrome,但是切换到普通账户就正常了。

评分 0, 满分 5 星
0
0
看完收藏一下,下次也能找得到
上一篇:
:下一篇