CentOS 6.x 安裝Chrome

轉自:http://topphp.org/centos-install-google-chrome.html

在/etc/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

以上代碼來自CentOS:http://wiki.centos.org/AdditionalResources/Repositories/GoogleYumRepos

配置好Google Chrome瀏覽器Yum Repository好後,可以通過以下命令來安裝Google Chrome瀏覽器:
# 安裝Google Chrome穩定版本
yum install google-chrome-stable
 
# 安裝Google Chrome測試版本
yum install google-chrome-beta
 
# 安裝Google Chrome不穩定版本
yum install google-chrome-unstable
至此Google Chrome瀏覽器就安裝完畢。由於Google在中國的特殊性,有時候敲指令安裝的時候會提示主機連接不上或者請求超時之類的。解決此問題只能通過修改/etc/hosts文件來解決,把dl.google.com指向別的可用的服務器。可以在http://code.google.com/p/smarthosts/下載,添加到/etc/hosts文件中。
發佈了33 篇原創文章 · 獲贊 4 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章