ECS云服务器Centos7.2更换yum源

备份原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

发表评论

您的电子邮箱地址不会被公开。