CentOS下执行yum install时提示无法下载https的package包,异常信息提示如下
# yum install -y PHP-mcrypt.x86_64
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.btte.net * extras: mirrors.btte.net * updates: mirrors.btte.net epel | 4.3 kB 00:00 http://download.fedoraproject.org/pub/epel/6/x86_64/repodata/56549b7eb81579a5e8512a47955fe5a2ed2c665557b580caa9c2919c2ffd5583-primary.sqlite.bz2: [Errno 14] problem making ssl connection Trying other mirror.@H_404_7@
解决方法vim /etc/yum.repos.d/epel.repo
[epel] name=Extra Packages for Enterprise Linux 6 - $basearch baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch #mirrorlist=https://mirrors.fedoraproject.org/Metalink?repo=epel-6&arch=$basearc h failovermethod=priority enabled=1 #enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 @H_404_7@将enabled=1先改为enabled=0然后命令行执行
yum install ca-certificates,安装成功后,将enabled重新改为1,再行
yum install -y XXXX可以正常安装了