zoukankan      html  css  js  c++  java
  • Centos7 安装谷歌浏览器 经测试,好使。

    Centos7 安装谷歌浏览器

    配置下载yum源

    1
    2
    cd /etc/yum.repos.d
    vim google-chrome.repo
    1
    2
    3
    4
    5
    6
    [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
    yum -y install google-chrome-stable --nogpgcheck

     复制谷歌浏览器图标到桌面方便打开  

    1
    2
    cd /usr/share/applications/
    cp  /usr/share/applications/google-chrome.desktop  /root/Desktop

     在linux环境下:首次打开谷歌浏览器需要做如下配置  

    解决google-chrome无法启动的问题

    问题表现:

    双击Google Chrome图标无反应,无法打开浏览器。方法一:

    1
    2
    3
    桌面图标右击-->属性-->启动命令后添加“--no-sandbox”
     
    即:/usr/bin/google-chrome-stable %U --no-sandbox

      方法二:

    1
    2
    3
    4
    5
    vim  /usr/share/applications/google-chrome.desktop
     
    修改:Exec=/usr/bin/google-chrome-stable %U
     
    为:Exec=/usr/bin/google-chrome-stable %U --no-sandbox
    1
    cp  /usr/share/applications/google-chrome.desktop  /root/Desktop

      

  • 相关阅读:
    python第一课
    go反射----4构建
    go反射----3方法
    go反射----2值
    go生成xml
    go互斥锁Mutex
    go中的读写锁RWMutex
    go语言调用cmd
    go语言发送邮件
    go语言文件操作
  • 原文地址:https://www.cnblogs.com/wangboyu/p/13274023.html
Copyright © 2011-2022 走看看