安装chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
yum install ./google-chrome-stable_current_x86_64.rpm
安装Xvfb
yum update
yum install Xvfb
yum install libXfont
yum install xorg-x11-fonts*
安装chromedriver
wget http://chromedriver.storage.googleapis.com/108.0.5359.71/chromedriver_linux64.zip
解压、移动到/usr/bin、修改权限
unzip chromedriver_linux64.zip
mv chromedriver /usr/bin
chomod +x /usr/bin/chromedriver