centos部署chrome和chromedriver

发布于:2025-08-15 ⋅ 阅读:(10) ⋅ 点赞:(0)

下载

chrome安装包1:http://dist.control.lth.se/public/CentOS-7/x86_64/google.x86_64/
chrome安装包2:https://googlechromelabs.github.io/chrome-for-testing/#stable
chromedrver1:https://registry.npmmirror.com/binary.html?path=chromedriver/
chromedriver2:https://www.cnblogs.com/aiyablog/articles/17948703

替换139.0.7258.68版本号
https://storage.googleapis.com/chrome-for-testing-public/139.0.7258.68/win64/chromedriver-win64.zip
https://storage.googleapis.com/chrome-for-testing-public/139.0.7258.68/linux64/chromedriver-linux64.zip

124版chrome下载地址:
http://dist.control.lth.se/public/CentOS-7/x86_64/google.x86_64/google-chrome-stable-124.0.6367.118-1.x86_64.rpm

安装chrome

安装最新版:
yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
或安装本地:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
yum install ./google-chrome-stable_current_x86_64.rpm
yum localinstall google-chrome-stable_current_x86_64.rpm

卸载chrome

yum remove google-chrome-stable

查看chrome版本

google-chrome -version

查看安装目录

whereis google-chrome

注意事项:

centos7最高只能安装chrome124版本,以上或报错

chromedriver需要添加执行权限


网站公告

今日签到

点亮在社区的每一天
去签到