vi /etc/yum.repos.d/epel.repo

将https变为http即可。

Linux的yum方式安装报错:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try_yum安装


重新yum安装即可成功。