1、安装chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
yum install ./google-chrome-stable_current_x86_64.rpm
yum install mesa-libOSMesa-devel gnu-free-sans-fonts wqy-zenhei-fonts
2、查看chrome版本(一般安装的都是最新版本)
google-chrome --version
3、安装chromedriver
wget http://npm.taobao.org/mirrors/chromedriver/104.0.5112.79/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
mv chromedriver /usr/bin/
chmod +x /usr/bin/chromedriver
注意版本号,是否在CNPM Binaries Mirror中存在,才能下载到对应的driver