1.下载阿里云的镜像源wget -O /etc/yum.repo.d/Centos-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repoCentos6系统将Centos-7.repo改为Centos-6.repo
2.重新设置缓存yum clean allyum makecache