[root@FNSHB109 yum.repos.d]# cat test.repo
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://rndmirrors.alcatel-sbell.com.cn/mirrors/epel/7/$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
报错就是http://rndmirrors.alcatel-sbell.com.cn/mirrors/epel/7/下面的那一串数字在yum安装过程中找不到,后来把文件RPM-GPG-KEY-EPEL-7和RPM-GPG-KEY-EPEL-7Server拷贝到/etc/pki/rpm-gpg下面解决问题。