跟着這個教程安裝的:Centos7安裝chrome瀏覽器 (點擊)
1. 配置yum源
在目錄 /etc/yum.repos.d/ 下新建文件 google-chrome.repo
#vim /ect/yum.repos.d/google-chrome.repo
寫入如下內容:
[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.按 ESC 退出編輯模式(回到命令模式) 2.輸入 :wq! 保存並退出
2.安裝google chrome瀏覽器
Google官方源安裝:
#yum -y install google-chrome-stable
Google官方源可能在中國無法使用,導致安裝失敗或者在國內無法更新,可以添加以下參數來安裝:
#yum -y install google-chrome-stable --nogpgcheck
安裝完成:
3.運行chrome
找到chrome路徑,並做個軟連接,方便使用:
#which google-chrome-stable #ln -s xxx /bin/chrome
使用root用戶啟動chrome示例時會提示添加參數–no-sandbox flag
#chrome --no-sandbox flag
換命令:
#chrome -no-sandbox http://baidu.com