国外地址yum源停止,yum下载不了,就修改它为国内阿里yum源地址
以centos6为例 ,以 修改为阿里的yum源
1.备份本地yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
2.编辑CentOS-Base.repo将内容修改为
[base]
name=CentOS-6.10 - Base - vault.centos.org
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos-vault/6.10/os/$basearch/
gpgcheck=1
gpgkey=h