CentOS 7 yum命令安装各种包失败或者找不到镜像问题
yum [Errno 256] No more mirrors to try
#清除所有yum命令仓库缓存
yum clean all
#重新建立yum命令仓库缓存
yum makecache
更换镜像源
cd /etc/yum.repos.d/
rm -f CentOS-Base.repo CentOS-AppStream.repo CentOS-PowerTools.repo CentOS-centosplus.repo CentOS-Extras.repo
curl -o CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
yum makecache