centos7 安装Google Chrome浏览器

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

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

    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    

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

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

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

猜你喜欢

转载自blog.csdn.net/qq_42469759/article/details/89292716