配置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/$releasever\Server/$basearch/
enabled=1
gpgcheck=0

 

posted @ 2019-01-03 09:28  北漂-boy  阅读(441)  评论(0编辑  收藏  举报