- 备份Centos-Base.repo
[root@node1]# cd /etc/yum.repos.d/[root@node1]# mv CentOS-Base.repo CentOS-Base.repo.back
- 下载阿里云的Centos-7.repo
[root@node1]# wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
- 重新生成yum cache
[root@node1]# yum clean all [root@node1]# yum makecache