yum 报错
[root@zk1 tengine-1.5.0]# yum -y install gcc openssl spenssl-devel pcre-devel zlib-devel
Loaded plugins: refresh-packagekit
http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 : http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml
Trying other mirror.
http://mirrors.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - ""
Trying other mirror.
http://mirrors.cloud.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - ""
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
解决:更换yum源
1. 备份原有文件
[root@zk1 yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.backup
2. 下载源文件
下载centos源
[root@zk1 yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo
下载epel源
[root@zk1 yum.repos.d]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-7.repo
3. 清除和重新生成缓存
[root@zk1 yum.repos.d]# yum clean all && yum makecache