Linux centos安装Firefox、Chrome浏览器

1、安装Firefox浏览器

centos7有自带的Firefox浏览器,不过版本一般比较旧,有很多兼容性问题,需要先卸载掉

yum remove firefox

安装新版本的Firefox:

yum -y install firefox

安装成功后查看版本:firefox -version

输入firefox就可以直接启动Firefox浏览器,如果有安装桌面版centos,直接在应用程序点浏览器图标打开就行

2、安装Chrome浏览器

确认是否已经安装Chrome浏览器

查看浏览器版本:

google-chrome  -version

下面的截图是楼主已经安装了最新版本的Chrome后才截图的

配置yum的chrome源

 cd  /etc/yum.repos.d
 vi google-chrome.repo

添加以下代码:

[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

下载并安装chrome浏览器

yum -y install google-chrome-stable --nogpgcheck

安装完发现点击chrome浏览器图标转了几圈就没反应了

用命令启动:google-chrome,发现以下报错信息:

意思大概是用root启动需要加上--no-sandbox才可以

所以可以用以下命令启动:/usr/bin/google-chrome-stable --no-sandbox

但每次启动都要输入命令太麻烦,进入chrome安装目录:/usr/share/applications/

找到chrome浏览器图标,右击--》属性,在启动命令这一行加上:--no-sandbox

并复制图标到桌面,以后在桌面双击打开就行

  • 16
    点赞
  • 56
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值