行业知识
Linux CentOS7安装chrome和chromedriver(WebDriver),用于selenium爬虫(java代码演示)
2026-11-16 02:58:57
来源:互联网转载
环境软件信息:
| 序号 | 产品 | 版本 | 备注 |
|---|---|---|---|
| 1 | CentOS | 7.9 | |
| 2 | chrome | 99.0.4844.51 | chrome与ChromeDriver的版本必须一致 |
| 3 | ChromeDriver | 99.0.4844.51 | chrome与ChromeDriver的版本必须一致 |
| 4 | selenium | 4.12.1 | |
| 4 | JAVA | 8 |
1.安装
1.1.chrome下载安装
1.1.1. chrome下载
- 点击 chrome历史版本下载,按步骤下载
- 从下载的压缩包解压出rpm,上传CentOSindex.php/tags-13.html" >系统
1.1.2. chrome安装
- 安装
yum localinstall -y google-chrome-stable_current_x86_64.rpm
- 查看版本
google-chrome --version
1.2.chromedriver下载安装
1.2.1. chromedriver下载
- 点击 chromedriver历史版本下载,按步骤下载
1.2.2. chromedriver安装
- 解压后,上传到/usr/bin
- 给予执行权限
chmod +x /usr/bin/chromedriver
- 查看版本
chromedriver --version
2.selenium使用
9.参考
- https://blog.csdn.net/qq_44757034/article/details/131109612
- 从下载的压缩包解压出rpm,上传CentOSindex.php/tags-13.html" >系统
上一篇:云服务器到期怎么查询记录?
下一篇:QT多版本配置