安装chrome
首先安装google的epel源
vi /etc/yum.repos.d/google.repo
[google]
name=Google-x86_64
baseurl=http://dl.google.com/linux/rpm/stable/x86_64
enabled=1
gpgcheck=0
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
yum update , 然后yum install google-chrome-stable
chromedriver下载
https://npm.taobao.org/mirrors/chromedriver/ 将下载的chromedriver 放到脚本同级目录调用