z-x-y

1、安装chrome

用下面的命令安装最新的 Google 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 install mesa-libOSMesa-devel gnu-free-sans-fonts wqy-zenhei-fonts

 

2、安装 chromedriver

chrome官网 wget https://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip
淘宝源(推荐)
wget http://npm.taobao.org/mirrors/chromedriver/2.41/chromedriver_linux64.zip

 

 

将下载的文件解压,放在如下位置

unzip chromedriver_linux64.zip

/usr/bin/chromedriver

给予执行权限

chmod +x /usr/bin/chromedriver


还可以参考这篇文章,虽然没试过,但感觉很牛逼 

 https://intoli.com/blog/installing-google-chrome-on-centos/

 

分类:

技术点:

相关文章:

  • 2021-12-03
  • 2021-11-17
  • 2021-11-15
  • 2022-12-23
  • 2022-01-12
  • 2022-01-05
  • 2022-12-23
  • 2021-08-25
猜你喜欢
  • 2022-01-24
  • 2021-11-24
  • 2021-06-25
  • 2022-01-25
  • 2022-12-23
  • 2021-12-29
相关资源
相似解决方案