CentOS 7 Yum install * 报错

85407718 2019-12-04

1.修改vim /etc/yum.repos.d/CentOS-Base.repo ,把http协议修改为https

2. cat /etc/redhat-release 查询CentOS版本安装对应版本的epel

CentOS7使用yum需要安装epel

epel安装

sudo yum install -y epel-release

stress安装

sudo yum install -y stress
查询
yum list installed|grep epel

最后输入:stress --version 验证是否安装成功


epel安装错误,卸载
yum remove epel-release.noarch

相关推荐