网易163 yum源
镜像地址:https://mirrors.163.com/.help/CentOS7-Base-163.repo
(CentOS-7改变 例:Cent0S-6 变6版本yum源http://mirrors.163.com/)
curl -o /etc/yum.repos.d/CentOS7-163.repo https://mirrors.163.com/.help/CentOS7-Base-163.repo
yum clean all
yum repolist
或者
wget -O /etc/yum.repos.d/CentOS7-163.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
yum clean all
yum repolist
阿里云yum源
镜像地址:https://mirrors.aliyun.com/repo/Centos-7.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-7.aliyun.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum repolist
或者
curl -o /etc/yum.repos.d/CentOS-7.aliyun.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum repolist