CentOS7 yum安装报错Could not resolve host: mirrorlist.centos.org解决方案
测试是否可以ping通这个源 ping mirrorlist.centos.org
如果不行,就是源的问题,换源!
step1: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
step2:yum clean all
step3:yum makecache
step4:yum -y update
即可解决!