轉(zhuǎn)自(https://blog.csdn.net/u012141979/article/details/109415166)
1. 下載安裝包
用瀏覽器下載包:
https://dl.google.com/linux/di[rect](https://so.csdn.net/so/search?q=rect)/google-chrome-stable_current_x86_64.rpm
2. 安裝
[root@wilber ~]# cd /root/下載/ //進(jìn)入包下載的目錄
[root@wilber ~]# rpm -ivh google-chrome-stable_current_x86_64.rpm
注:若報(bào)錯(cuò)缺少依賴包咽笼,則yum install -y 安裝好對(duì)應(yīng)的依賴包再安裝google-chrome
3. 添加google-chrome快捷方式到桌面
將 /usr/share/application/ 目錄下的 Google Chrome 圖標(biāo)復(fù)制到桌面运授,如圖:
( 或在終端用命令復(fù)制 # cp /usr/share/applications/google-chrome.desktop /root/桌面/ )
復(fù)制到桌面后是一個(gè)文件 "google-chrome.desktop",如圖:
直接雙擊運(yùn)行祈远,彈出的對(duì)話框選 “Trust and Launch” 即可啟動(dòng)屎媳,文件變?yōu)镚oogle Chrome的圖標(biāo):
解決google-chrome無(wú)法啟動(dòng)的問題
問題表現(xiàn):
雙擊Google Chrome圖標(biāo)無(wú)反應(yīng),無(wú)法打開瀏覽器区岗。
在命令行打開報(bào)錯(cuò):
[root@wilber ~]#** /usr/bin/google-chrome**
[5024:5024:0113/164154.164753:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
解決方法:
[root@wilber ~]# **/usr/bin/google-chrome --no-sandbox ** //添加--no-sandbox后即可啟動(dòng)瀏覽器
桌面圖標(biāo)右擊-->屬性-->啟動(dòng)命令后添加“--no-sandbox”
即:/usr/bin/google-chrome-stable %U --no-sandbox
[root@wilber ~]# vim /usr/share/applications/google-chrome.desktop
修改:Exec=/usr/bin/google-chrome-stable %U
為:Exec=/usr/bin/google-chrome-stable %U --no-sandbox