Centos 開發軟件安裝

1.chrome瀏覽器

1.1 配置yum源

在目錄 /etc/yum.repos.d/ 下新建文件 google-chrome.rep

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.3 安裝google chrome瀏覽器

yum -y install google-chrome-stable

Google官方源可能在中國無法使用,導致安裝失敗或者在國內無法更新,可以添加以下參數來安裝:

yum -y install google-chrome-stable --nogpgcheck

1.4 運行chrome

找到chrome路徑,并做個軟連接,方便使用:

whereis google-chrome-stable
google-chrome-stable: /usr/bin/google-chrome-stable
ln -s usr/bin/google-chrome-stable /bin/chrome

使用root用戶啟動chrome示例時會提示添加參數–no-sandbox
chrome --no-sandbox


2.nginx

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容