Linux安装Chrome浏览器
下载安装包
CentOS
# wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
# yum install ./google-chrome-stable_current_x86_64.rpm
Ubuntu
# wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# dpkg -i google-chrome-stable_current_amd64.deb
错误:google-chrome-stable(--install)
解决:
执行
# apt-get -f install
再执行
# dpkg -i google-chrome-stable_current_amd64.deb
查看Chrome版本
# google-chrome --version
安装chromedriver
软件下载地址
chrome官网
# wget https://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip
淘宝源(推荐)
# wget http://npm.taobao.org/mirrors/chromedriver/2.41/chromedriver_linux64.zip
添加执行权限
# chmod +x /usr/bin/chromedriver