centos系统中yum出现“Could not retrieve mirrorlist ”的处理方法

https://www.landui.com/help/show-2739.html

 

 

这种情况通常是,是因为没有配置DNS服务器。

解决方法:用VI编辑resolv.conf文件

命令

vi /etc/resolv.conf

添加:

nameserver 114.114.114.114    国内的

wq

保存退出即可

posted on 2019-08-29 14:43  ziyi_ang  阅读(141)  评论(0编辑  收藏  举报

导航