CentOS安装google-chrome和驱动

温馨提醒

一、安装 google-chrome

  • 添加 yum 源

    1
    2
    3
    4
    5
    6
    
    [google64]
    name=Google - x86_64
    baseurl=http://dl.google.com/linux/rpm/stable/x86_64
    enabled=1
    gpgcheck=1
    gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
  • 安装

    1
    2
    3
    4
    5
    
    # 下载 rpm 包
    wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
    
    # 直接安装
    yum install google-chrome-stable

二、安装 chromedriver

https://chromedriver.storage.googleapis.com/index.html 下载对应版本的驱动