请先备份/etc/yum.repos.d/
目录下CentOS-Base.repo
,epel.repo
覆盖 CentOS-Base.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
覆盖 EPEL
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
重新缓存
yum makecache