linux 安装nogui-chrome,构造selenium运行环境

#https://chromedriver.storage.googleapis.com/index.html 查看chromedriver的版本
wget https://chromedriver.storage.googleapis.com/index.html?path=80.0.3987.106/ 



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

#repo内容编辑如下:
[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


#安装
yum -y install google-chrome-stable --nogpgcheck
#查看
google-chrome --version


  

参考:https://www.cnblogs.com/qiaoliming/p/chrome.html

 

posted @ 2020-03-11 14:51  头鹰在学习  阅读(291)  评论(0编辑  收藏  举报