作者:admin,发布日期:2019-08-29
阅读:3663;评论:0
开在开头
当我们使用Centos7的图形界面时,系统自带的浏览器是FireFox,我们可以通过下载安装包的方式来安装chrome。
操作步骤
下载安装包
这里打开第三方的Chrome下载页面
https://www.chrome64bit.com/index.php/google-chrome-64-bit-for-linux
这里需要注意,我们要下载RPM包,deb包一般情况下是给debian系列的系统使用的
这里直接复制下载链接到服务器里下载(不知道怎么复制的请自己百度)
[root@BT ~]# wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm --2019-08-29 12:55:20-- https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm Resolving dl.google.com (dl.google.com)... 172.217.194.93, 172.217.194.91, 172.217.194.136, ... Connecting to dl.google.com (dl.google.com)|172.217.194.93|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 59345222 (57M) [application/x-rpm] Saving to: ‘google-chrome-stable_current_x86_64.rpm’ 100%[==============================================================================================>] 59,345,222 49.1MB/s in 1.2s 2019-08-29 12:55:21 (49.1 MB/s) - ‘google-chrome-stable_current_x86_64.rpm’ saved [59345222/59345222]
下载完成,我们需要使用yum安装这个rpm包以解决依赖问题(很多用rpm装不上的小伙伴就是依赖的问题)
[root@BT ~]# yum -y install google-chrome-stable_current_x86_64.rpm Loaded plugins: fastestmirror, langpacks Examining google-chrome-stable_current_x86_64.rpm: google-chrome-stable-76.0.3809.132-1.x86_64 Marking google-chrome-stable_current_x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package google-chrome-stable.x86_64 0:76.0.3809.132-1 will be installed --> Processing Dependency: /usr/bin/lsb_release for package: google-chrome-stable-76.0.3809.132-1.x86_64 Loading mirror speeds from cached hostfile --> Processing Dependency: liberation-fonts for package: google-chrome-stable-76.0.3809.132-1.x86_64 --> Processing Dependency: libXss.so.1()(64bit) for package: google-chrome-stable-76.0.3809.132-1.x86_64 --> Processing Dependency: libappindicator3.so.1()(64bit) for package: google-chrome-stable-76.0.3809.132-1.x86_64 --> Running transaction check ---> Package libXScrnSaver.x86_64 0:1.2.2-6.1.el7 will be installed ---> Package libappindicator-gtk3.x86_64 0:12.10.0-13.el7 will be installed --> Processing Dependency: libindicator3.so.7()(64bit) for package: libappindicator-gtk3-12.10.0-13.el7.x86_64 --> Processing Dependency: libdbusmenu-gtk3.so.4()(64bit) for package: libappindicator-gtk3-12.10.0-13.el7.x86_64 --> Processing Dependency: libdbusmenu-glib.so.4()(64bit) for package: libappindicator-gtk3-12.10.0-13.el7.x86_64 ---> Package liberation-fonts.noarch 1:1.07.2-16.el7 will be installed --> Processing Dependency: liberation-narrow-fonts = 1:1.07.2-16.el7 for package: 1:liberation-fonts-1.07.2-16.el7.noarch ---> Package redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 will be installed --> Processing Dependency: redhat-lsb-submod-security(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: spax for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: /usr/bin/patch for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: /usr/bin/m4 for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 --> Running transaction check ---> Package libdbusmenu.x86_64 0:16.04.0-4.el7 will be installed ---> Package libdbusmenu-gtk3.x86_64 0:16.04.0-4.el7 will be installed ---> Package liberation-narrow-fonts.noarch 1:1.07.2-16.el7 will be installed ---> Package libindicator-gtk3.x86_64 0:12.10.1-6.el7 will be installed ---> Package m4.x86_64 0:1.4.16-10.el7 will be installed ---> Package patch.x86_64 0:2.7.1-10.el7_5 will be installed ---> Package redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1 will be installed ---> Package spax.x86_64 0:1.5.2-13.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================================== Package Arch Version Repository Size ======================================================================================================================================== Installing: google-chrome-stable x86_64 76.0.3809.132-1 /google-chrome-stable_current_x86_64 201 M Installing for dependencies: libXScrnSaver x86_64 1.2.2-6.1.el7 base 24 k libappindicator-gtk3 x86_64 12.10.0-13.el7 base 37 k libdbusmenu x86_64 16.04.0-4.el7 base 132 k libdbusmenu-gtk3 x86_64 16.04.0-4.el7 base 34 k liberation-fonts noarch 1:1.07.2-16.el7 base 13 k liberation-narrow-fonts noarch 1:1.07.2-16.el7 base 202 k libindicator-gtk3 x86_64 12.10.1-6.el7 base 63 k m4 x86_64 1.4.16-10.el7 base 256 k patch x86_64 2.7.1-10.el7_5 base 110 k redhat-lsb-core x86_64 4.1-27.el7.centos.1 base 38 k redhat-lsb-submod-security x86_64 4.1-27.el7.centos.1 base 15 k spax x86_64 1.5.2-13.el7 base 260 k Transaction Summary ======================================================================================================================================== Install 1 Package (+12 Dependent packages) Total size: 202 M Total download size: 1.2 M Installed size: 203 M Downloading packages: (1/12): libXScrnSaver-1.2.2-6.1.el7.x86_64.rpm | 24 kB 00:00:00 (2/12): libdbusmenu-16.04.0-4.el7.x86_64.rpm | 132 kB 00:00:00 (3/12): libdbusmenu-gtk3-16.04.0-4.el7.x86_64.rpm | 34 kB 00:00:00 (4/12): libappindicator-gtk3-12.10.0-13.el7.x86_64.rpm | 37 kB 00:00:00 (5/12): liberation-narrow-fonts-1.07.2-16.el7.noarch.rpm | 202 kB 00:00:00 (6/12): liberation-fonts-1.07.2-16.el7.noarch.rpm | 13 kB 00:00:00 (7/12): libindicator-gtk3-12.10.1-6.el7.x86_64.rpm | 63 kB 00:00:00 (8/12): patch-2.7.1-10.el7_5.x86_64.rpm | 110 kB 00:00:00 (9/12): m4-1.4.16-10.el7.x86_64.rpm | 256 kB 00:00:00 (10/12): redhat-lsb-core-4.1-27.el7.centos.1.x86_64.rpm | 38 kB 00:00:00 (11/12): redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64.rpm | 15 kB 00:00:00 (12/12): spax-1.5.2-13.el7.x86_64.rpm | 260 kB 00:00:00 ---------------------------------------------------------------------------------------------------------------------------------------- Total 1.4 MB/s | 1.2 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : libdbusmenu-16.04.0-4.el7.x86_64 1/13 Installing : libdbusmenu-gtk3-16.04.0-4.el7.x86_64 2/13 Installing : m4-1.4.16-10.el7.x86_64 3/13 Installing : patch-2.7.1-10.el7_5.x86_64 4/13 Installing : 1:liberation-narrow-fonts-1.07.2-16.el7.noarch 5/13 Installing : 1:liberation-fonts-1.07.2-16.el7.noarch 6/13 Installing : spax-1.5.2-13.el7.x86_64 7/13 Installing : libXScrnSaver-1.2.2-6.1.el7.x86_64 8/13 Installing : libindicator-gtk3-12.10.1-6.el7.x86_64 9/13 Installing : libappindicator-gtk3-12.10.0-13.el7.x86_64 10/13 Installing : redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64 11/13 Installing : redhat-lsb-core-4.1-27.el7.centos.1.x86_64 12/13 Installing : google-chrome-stable-76.0.3809.132-1.x86_64 13/13 Redirecting to /bin/systemctl start atd.service Verifying : 1:liberation-fonts-1.07.2-16.el7.noarch 1/13 Verifying : redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64 2/13 Verifying : libappindicator-gtk3-12.10.0-13.el7.x86_64 3/13 Verifying : libindicator-gtk3-12.10.1-6.el7.x86_64 4/13 Verifying : libXScrnSaver-1.2.2-6.1.el7.x86_64 5/13 Verifying : libdbusmenu-gtk3-16.04.0-4.el7.x86_64 6/13 Verifying : google-chrome-stable-76.0.3809.132-1.x86_64 7/13 Verifying : spax-1.5.2-13.el7.x86_64 8/13 Verifying : 1:liberation-narrow-fonts-1.07.2-16.el7.noarch 9/13 Verifying : patch-2.7.1-10.el7_5.x86_64 10/13 Verifying : redhat-lsb-core-4.1-27.el7.centos.1.x86_64 11/13 Verifying : m4-1.4.16-10.el7.x86_64 12/13 Verifying : libdbusmenu-16.04.0-4.el7.x86_64 13/13 Installed: google-chrome-stable.x86_64 0:76.0.3809.132-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 m4.x86_64 0:1.4.16-10.el7 patch.x86_64 0:2.7.1-10.el7_5 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 Complete!
安装完成,进入图形界面就可以找到Chrome
打不开的同学请不要使用root用户,切换到普通用户运行chrome
第一次启动,需要创建密钥对,这里随便输入一个密码就行了
至此,安装已经全部完成。