admin 管理员组

文章数量: 887017

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/linux/chrome/rpm/stable/x86_64

enabled=1

gpgcheck=1

gpgkey=https://dl.google/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/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.

注释:如有侵权请联系博主

本文标签: 浏览器 命令行 Linux chromedriver chrome