CentOS7系列--安裝Chrome瀏覽器


CentOS7系列--安裝Chrome瀏覽器linux

1. 建立yum源文件

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

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

輸入以下內容:google

[google-chrome]url

name=google-chromeserver

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

enabled=1table

gpgcheck=1亂碼

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

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

相關文章
相關標籤/搜索