centos7 配置阿里云yum源

下载yum源
yum -y install wget
cd  /etc/yum.repos.d/
wget  http://mirrors.aliyun.com/repo/Centos-7.repo


备份系统yum源,使用阿里云yum源
mv  CentOs-Base.repo CentOs-Base.repo.bak
mv  Centos-7.repo CentOs-Base.repo


执行yum源更新命令
yum clean all
yum makecache
yum update
原文地址:https://www.cnblogs.com/hcl1991/p/8985941.html