1、chrome:
curl https://intoli.com/install-google-chrome.sh | bash
1.1.centos安装chrome:
從 Google 下載最新版的 Chrome:
$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm $ sudo yum install ./google-chrome-stable_current_*.rpm
完成後可以用以下指令確認是否安裝成正, 以及檢視安裝的版本:
$ google-chrome –version Google Chrome 73.0.3683.75
2、chromedriver:
sudo apt-get install unzip
wget -N http://chromedriver.storage.googleapis.com/2.26/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
chmod +x chromedriver
sudo mv -f chromedriver /usr/local/share/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
————————————————
版权声明:本文为CSDN博主「YasinQiu」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/pangtouyu_qy/article/details/80282795