天天看點

Redhat/Centos6.x安裝Chrome

<a href="https://people.centos.org/hughesjr/chromium/6/x86_64/RPMS/">https://people.centos.org/hughesjr/chromium/6/x86_64/RPMS/</a>

 由于Chrome對rhel6.x不在支援釋出版本,隻能安裝chromium版本!

01、下載下傳位址

http://people.centos.org/hughesjr/chromium/6/x86_64/RPMS/chromium-31.0.1650.63-2.el6.x86_64.rpm

http://pan.baidu.com/s/1jImNbM2

02、安裝

rpm -ivh chromium-31.0.1650.63-2.el6.x86_64.rpm

03、調整參數,預設不能root運作(安全隐患)

 錯誤提示:

  centos6.5 安裝Chromium後,用root使用者登入後一直出現Chromium can not be run as root。

解決辦法:

# cd /opt/chromium-browser/

# vi chromium-browser.sh

找到exec -a "0""0""HERE/chromium-browser" CHROMIUMRHELFLAGS"CHROMIUMRHELFLAGS"@"在後面添加 --user-data-dir

修改後為:

  exec -a "0""0""HERE/chromium-browser" CHROMIUMRHELFLAGS"CHROMIUMRHELFLAGS"@" --user-data-dir

本文轉自 yntmdr 51CTO部落格,原文連結:http://blog.51cto.com/yntmdr/2070724,如需轉載請自行聯系原作者

繼續閱讀