1. 下載google瀏覽器安裝包,下載地址
[root@localhost install]# ls
google-chrome-stable_current_x86_64.rpm
2. 安裝
[root@localhost install]# sudo yum localinstall google-chrome-stable_current_x86_64.rpm
3. 安裝完成之後,還啓不動google瀏覽器, 可直接修改配置文件, 加上 --no-sandbox
3.1 文件地址 (修改文件方法)
[root@localhost ~]# ls /usr/share/applications/google-chrome.desktop
/usr/share/applications/google-chrome.desktop
[root@localhost ~]# vi /usr/share/applications/google-chrome.desktop
3.2 能裝google瀏覽器的基本上都是有圖形界面的, 可以直接打開文件, 在命令後面加上 --no-sandbox
另外一種安裝的方法 yum 安裝
1. 創建yum源文件
[root@test ~]# cd /etc/yum.repos.d/
[root@test yum.repos.d]# touch google-chrome.repo
2. 修改源的配置信息
[root@test yum.repos.d]# vi 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
3. yum 安裝
[root@test yum.repos.d]# yum -y install google-chrome-stable --nogpgcheck
4. 把圖標考到桌面
[root@test yum.repos.d]# cp /usr/share/applications/google-chrome.desktop /root/桌面
# /usr/share/applications/ 爲系統存放應用圖標的路徑
# /root/桌面 root 是你要copy到用戶的桌面, 我這裏桌面是中文所以這樣寫的