配置centos7阿里镜像源和epel源

[root@runstone yum.repos.d]# pwd
/etc/yum.repos.d
[root@runstone yum.repos.d]# cat aliBase.repo #镜像源
[aliBase]
name=aliBase
baseurl=https://mirrors.aliyun.com/centos/$releasever/os/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-$releasever

[root@runstone yum.repos.d]# cat aliEpel.repo #epel源
[aliEpel]
name=aliEpel
baseurl=https://mirrors.aliyun.com/epel/$releaseverServer/$basearch/
enabled=1
gpgcheck=0
原文地址:https://www.cnblogs.com/yjt1993/p/10212408.html