1,cd /etc/yum.repo.d
2,mv CentOS-Base.repo CentOS-Base.repo.bak
3,wget http://mirrors.aliyun.com/repo/Centos-7.repo
4,mv Centos-7.repo CentOS-Base.repo
5, yum clean all
6, yum makecache
7, yum update
1,cd /etc/yum.repo.d
2,mv CentOS-Base.repo CentOS-Base.repo.bak
3,wget http://mirrors.aliyun.com/repo/Centos-7.repo
4,mv Centos-7.repo CentOS-Base.repo
5, yum clean all
6, yum makecache
7, yum update