阿里巴巴开源镜像站-OPSX镜像站:https://developer.aliyun.com/mirror/
CentOS 镜像:https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.3e221b11PPk5ie
1. 备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2. 下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
# 或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.al