CentOS7 method of installing Chrome

1. Configure yum download the source:

/Etc/yum.repos.d/ file in the directory under the new google-chrome.repo

[root@localhost ~]#  cd /ect/yum.repos.d/
[root@localhost yum.repos.d]#  vim google-chrome.repo

Editing google-chrome.repo, follows ,, after editing save and exit (: wq)

[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Install google chrome browser:

[root@localhost yum.repos.d]# yum -y install google-chrome-stable --nogpgcheck

Check your browser version

google-chrome --version

2. Driver Installation

download link

https://chromedriver.storage.googleapis.com/index.html

Sent to find the appropriate driver / usr / bin /

mv chromedriver /usr/bin/

Check your permissions

ls -l chromedriver

Given execute permissions and assign users to perform

chmod 755 /usr/bin/chromedriver
chown xxx:xxx /usr/bin/chromedriver

This operation can be automated with the program calls the Google browser

Guess you like

Origin www.cnblogs.com/qiaoliming/p/chrome.html