zoukankan      html  css  js  c++  java
  • CentOS7系列--安装Chrome浏览器


    CentOS7系列--安装Chrome浏览器

    1. 创建yum源文件

    [root@server20 ~]# cd /etc/yum.repos.d/

    [root@server20 yum.repos.d]# vi google-chrome.repo

    输入如下内容:

    [google-chrome]

    name=google-chrome

    baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64

    enabled=1

    gpgcheck=1

    gpgkey=https://dl.google.com/linux/linux_signing_key.pub

    2. 安装google chrome

    [root@server20 yum.repos.d]# yum -y install google-chrome-stable --nogpgcheck

    3. 处理错误

    3.1. no-sandbox错误

    错误如下:

    [root@server20 yum.repos.d]# google-chrome-stable

    [9574:9574:0203/164134.417994:ERROR:zygote_host_impl_linux.cc(89)] Running as ro ot without --no-sandbox is not supported. See https://crbug.com/638180.

    [root@server20 yum.repos.d]# whereis google-chrome

    google-chrome: /usr/bin/google-chrome /usr/share/man/man1/google-chrome.1.gz

    处理方式如下:

    [root@server20 yum.repos.d]# whereis google-chrome

    google-chrome: /usr/bin/google-chrome /usr/share/man/man1/google-chrome.1.gz

    [root@server20 yum.repos.d]# vi /usr/bin/google-chrome

    exec -a "$0" "$HERE/chrome" "$@"

    改为

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

    3.2. 中文乱码

    [root@server20 ~]# yum -y install fontconfig

    [root@server20 ~]# yum -y groupinstall Fonts

  • 相关阅读:
    python RabbitMQ gRPC 实践经验
    python 数据库实践经验
    python GUI相关
    angularjs中的$watch、$digest、$apply
    css选择器优先级
    angularjs基本理解
    如何编写符合web标准的XHTML文档
    跨域问题
    如何养成良好的书写代码习惯
    ie常见兼容问题
  • 原文地址:https://www.cnblogs.com/gispathfinder/p/10350731.html
Copyright © 2011-2022 走看看