下载 阿里的 yum repo文件
http://mirrors.aliyun.com/repo/Centos-7.repo
重命名之前的源文件
mv CentOs-Base.repo CentOs-Base.repo.backup
将下载的文件复制到之间的位置
执行yum源更新命令
yum clean all
yum makecache
yum update
下载 阿里的 yum repo文件
http://mirrors.aliyun.com/repo/Centos-7.repo
重命名之前的源文件
mv CentOs-Base.repo CentOs-Base.repo.backup
将下载的文件复制到之间的位置
执行yum源更新命令
yum clean all
yum makecache
yum update