centos 运行java+selenium+chrome+ch

2022-12-02  本文已影响0人  卫泽洪_70a7

安装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 

https://blog.csdn.net/s_frozen/article/details/126055455

上一篇 下一篇

猜你喜欢

热点阅读