centos 7 安装chrome浏览器

下载google 浏览器:

  wget  https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

配置163 yum 源:

  wget -O google https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

  yum clean all

  yum repolist

安装chrome:

  yum localinstall  google-chrome-stable_current_x86_64.rpm

root 用户无法启动配置:

  rpm -ql $(rpm -qa | grep chrome) 找到启动脚本

    /opt/google/chrome/google-chrome

  修改/opt/google/chrome/google-chrome 脚本(脚本最后一行):

    exec -a "$0" "$HERE/chrome" "$@"  改为  exec -a "$0" "$HERE/chrome" "$@" --user-data-dir --no-sandbox  

猜你喜欢

转载自www.cnblogs.com/hrwu/p/9381301.html