栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

centos7 安装 chrome

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

centos7 安装 chrome


#最新版chrome95需要升级glibc到2.18,这个库是底层库尽量不要升级,遂安装老版chrome解决

参见

https://blog.csdn.net/aWDac/article/details/80647001

#rpm安装chrome77
rpm -ivh https://dl.lancdn.com/landian/soft/chrome/m/77.0.3865.90_x86_64.rpm

#报错
[root@localhost ~]# rpm -ivh https://dl.lancdn.com/landian/soft/chrome/m/77.0.3865.90_x86_64.rpm
Retrieving https://dl.lancdn.com/landian/soft/chrome/m/77.0.3865.90_x86_64.rpm
error: Failed dependencies:
        libappindicator3.so.1()(64bit) is needed by google-chrome-stable-77.0.3865.90-1.x86_64
        liberation-fonts is needed by google-chrome-stable-77.0.3865.90-1.x86_64
        xdg-utils is needed by google-chrome-stable-77.0.3865.90-1.x86_64

#查找对应依赖安装
yum install libappindicator-gtk3
yum install liberation-fonts
yum install xdg-utils

#安装完成查看是否缺失依赖
[root@localhost ~]# sudo ldd /opt/google/chrome/chrome | grep not
[root@localhost ~]# 

#没有任何输出,说明安装正常
#使用chrome截图

[root@localhost ~]# sudo google-chrome-stable --headless --disable-gpu --screenshot --no-sandbox https://intoli.com/blog/installing-google-chrome-on-centos/
[1020/171640.133208:INFO:headless_shell.cc(619)] Written to file screenshot.png.
[root@localhost ~]# ls
anaconda-ks.cfg  glibc-2.18  glibc-2.18.tar.gz  install.sh  screenshot.png

安装完毕
 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/334764.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号