建議用戶更換其他系統(tǒng),如果您一定要使用CentOS 7.x,那么只能將系統(tǒng)的yum源更換為第三方y(tǒng)um源,以下是教程。
將CentOS 7的yum源修改為阿里云源
執(zhí)行命令:
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
執(zhí)行完以上三個命令后,就可以使用yum安裝軟件了。