切换阿里yum镜像源

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache

 

上边是centos7,centos6把7换成6即可

posted @ 2018-01-30 15:44  imklutz  阅读(4143)  评论(1编辑  收藏  举报