安装chrome,已安装可以跳过
sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.debsudo dpkg -i google-chrome*.deb
sudo apt-getinstall -f
安装vxfb
sudo apt-getinstall xvfb
安装chrome driver:
先google网站上下载,按你下载的chrome版本选择对应的
https://chromedriver.storage.googleapis.com/index.html
然后执行
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
网友评论