标签:base unzip width local https gpg x86_64 htm repos
1.root用户下进入到etc/yum.repos.d目录下
[root@f7d6b9f2-1291-4d2f-8805-aef94deac9f7 yum.repos.d]# pwd
cd /etc/yum.repos.d
2.vi google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
3.运行命令
yum -y install google-chrome-stable --nogpgcheck
如果执行到这里出现
执行面的命令
vi /usr/libexec/urlgrabber-ext-down
把 #! /usr/bin/python 修改成 #! /usr/bin/python2
4.下载chromedriver
wget https://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip
5.解压chromedriver
unzip chromedriver_linux64.zip
6.移动chromedriver
mv chromedriver /usr/bin/
7.最后验证安装情况
[root@centos-s-1vcpu-1gb-sfo1-01-niuyongliang yum.repos.d]# chromedriver
Starting ChromeDriver 2.40.565383 (76257d1ab79276b2d53ee976b2c3e3b9f335cde7) on port 9515
Only local connections are allowed.
注释:如有侵权请联系博主
转发请标明出处:https://www.cnblogs.com/zzxd/p/10906939.html
linux下安装google-chrome浏览器和chromedriver
标签:base unzip width local https gpg x86_64 htm repos
原文地址:https://www.cnblogs.com/zzxd/p/10906939.html