zoukankan      html  css  js  c++  java
  • centos7.3安装chrome

    Centos7安装chrome浏览器

    1.配置yum源

      在目录 /etc/yum.repos.d/ 下新建文件 google-chrome.repo

      cd /ect/yum.repos.d/
      vim google-chrome.repo

    2.写入如下内容:

      [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

    3.安装google chrome浏览器:

      yum -y install google-chrome-stable

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

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

    4.运行chrome 
      找到chrome路径,并做个软连接,方便使用:

        which google-chrome-stable

        ln -s /usr/bin/google-chrome-stable    /bin/chrome (xxx为google的绝对路径)

      使用root用户启动chrome示例时会提示添加参数–no-sandbox

        chrome --no-sandbox

    问题:点击/usr/share/applictions/下google图标没用

    决解:

      vim /bin/chrome

      把exec -a "$0" "$HERE/chrome" "$@" 改成

      exec -a "$0" "$HERE/chrome" "$@" --user-data-dir --no-sandbox

    命令运行chrome和点击图标就ok了

     
  • 相关阅读:
    Oracle中的exist和in
    oracle恢复误删数据
    【axios】API 说明
    Content-type对照表
    【gdal】创建GeoTiff栅格数据
    NPM使用
    【nodejs】request 和 response 对象
    【nodejs】express框架+mysql后台数据查询
    webapp网络定位
    JS对象创建的几种方法
  • 原文地址:https://www.cnblogs.com/wwchihiro/p/9377405.html
Copyright © 2011-2022 走看看