1. Download the repo file
wget http://mirrors.aliyun.com/repo/Centos-7.repo
2. Backup and replace the system repo file
cp Centos-7.repo /etc/yum.repos.d/
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.bak
mv Centos-7.repo CentOS-Base.repo (区分大小写)
3. Perform the yum source update operation
yum clean all
yum makecache
yum update