安装chrome
步骤1:下载
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
步骤2:安装
yum install ./google-chrome-stable_current_x86_64.rpm
步骤3:
查看浏览器版本:google-chrome --version
下载对应的驱动chromedriver,放入/usr/bin目录中(建议,其他目录也行)
给chromedriver赋予权限 chmod 755 chromedriver
解决centos下浏览器中文显示方框
解决办法:执行如下三条命令
yum -y groupinstall "X Window System"
yum -y groupinstall chinese-support
yum -y groupinstall Fonts