更换yum源为阿里云 1.把你系统中原有的base源更新为阿里云的源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 2.在你的系统中增加一个epel源,请使用阿里云的镜像 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo