备份原centos-base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
下载阿里云的centos-7对应的源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
缓存构建
yum makecache
转载请注明本文链接:https://blog.weixiaoline.com/496.html