Chrome headless三種安裝方法


在使用chrome headless的時候,使用安裝源有很多的依賴問題,提供三種方法,最簡單的是使用一鍵安裝腳本。

 

1.添加chrome源來安裝chrome

添加源:

## 添加:
vim /etc/yum.repos.d/chrome.repo

[google] name
=Google – i386 baseurl=http://dl.google.com/linux/rpm/stable/i386 enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub 64位系統: [google64] name=Google – x86_64 baseurl=http://dl.google.com/linux/rpm/stable/x86_64 enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub ## 安裝 1.sudo yum install google-chrome-stable 來安裝最新穩定版 2.sudo yum install google-chrome-unstable 最新版chrome

 

2.下載安裝

## Ubuntu系統安裝,此方式通過修改URL路徑,適用於Centos
sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get install -f

 

3.一鍵安裝,最方便的辦法,解決各種依賴問題

curl https://intoli.com/install-google-chrome.sh | bash

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM