mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.back
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS-Base.repo 文件
http://mirrors.aliyun.com/centos/$releasever/os/…
替换(centos 改为下面centos-vault , $releasever 替换成6.6)
http://mirrors.aliyun.com/centos-vault/6.6/os/…
yum clean all
yum makecache
http://download.fedoraproject.org/pub/epel/6/x86_64/repodata/repomd.xml 错误
修改epel.repo
https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/repodata/repomd.xml
[Errno 14] problem making ssl connection
首先禁用epel源,即将epel.repo里面的enabled=1先改为enabled=0
然后执行命令:yum install -y ca-certificates
安装成功后,再重新将enabled=0改成enabled=1
yum clean all
yum makecache