失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > CentOS安装Google浏览器

CentOS安装Google浏览器

时间:2021-11-16 03:58:13

相关推荐

CentOS安装Google浏览器

https://dl-sh-ctc-/45/jq/google-chrome-stable_current_x86_64.rpm

1、安装chrome

用下面的命令安装最新的 Google Chrome(这样安装的Google浏览器是最新版本的,可能与chromedriver不匹配)

yum install /linux/direct/google-chrome-stable_current_x86_64.rpm

也可以下载到本地再安装

wget /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./2.38/chromedriver_linux64.zip

wget /mirrors/chromedriver/2.41/chromedriver_linux64.zip

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

unzipchromedriver_linux64.zip

/usr/bin/chromedriver

给予执行权限

chmod +x /usr/bin/chromedriver

如果安装后发现与chromedriver版本不匹配,可以将其卸载掉,下载合适版本,到本地安装

# 查看已安装的Google浏览器版本

rpm -qa|grep google-chrome

# 卸载高版本google-chrome

rpm -e google-chrome(全名)

# 安装已经下载的google-chrome***.rpm

rpm -ivh google-chrome***.rpm

如果觉得《CentOS安装Google浏览器》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。