阿里云 yum 无法使用的解决

cd /etc/yum.repos.d/

从这里下载对应的3个文件,ssh上传进行替换

http://mirrors.aliyun.com/repo/

 如:centos 6.8

Centos-6.repo  => CentOS-Base.repo
epel-6.repo  => epel.repo
epel-testing.repo  => epel-testing.repo

执行 yum makecache

重新安装wget,一切顺畅了
posted @ 2017-06-09 00:35  lobtao  阅读(657)  评论(1编辑  收藏  举报