centos7更换系统自带yum源
1.阿里镜像站:
https://developer.aliyun.com/mirror/centosspm=a2c6h.13651102.0.0.3e221b11Pkxm0b
2.备份原有镜像 Centos-Base.repo
#备份系统源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
3.下载镜像
#拉取阿里源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
4.镜像生效
yum clean all ###清楚系统缓存
yum makecache ###重新生成缓存