1. 程式人生 > >Centos7安裝並啟動Google瀏覽器(firecat親測有效)

Centos7安裝並啟動Google瀏覽器(firecat親測有效)

1. 配置yum源 在目錄 /etc/yum.repos.d/ 下新建檔案 google-chrome.repo cd /ect/yum.repos.d/ vim google-chrome.repo 1 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

1 2 3 4 5 6 安裝google chrome瀏覽器: yum -y install google-chrome-stable 1 Google官方源可能在中國無法使用,導致安裝失敗或者在國內無法更新,可以新增以下引數來安裝: yum -y install google-chrome-stable --nogpgcheck 1 執行chrome 找到chrome路徑,並做個軟連線,方便使用: which google-chrome-stable ln -s xxx /bin/chrome 1 2 使用root使用者啟動chrome示例時會提示新增引數–no-sandbox flag chrome --no-sandbox flag --------