- 安装wget
yum install -y wget
- 备份/etc/yum.repos.d/CentOS-base.repo文件
cd /etc/yum.repos.d/ mv CentOS-base.repo CentOS-base.repo.back
- 下载阿里云的Centos-6.repo文件
wget -O CentOS-base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
- 重新加载yum
yum clean all yum makecache
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)