当前位置:   article > 正文

解决 "Could not resolve host: mirrorlist.centos.or

could not resolve host: mirrorlist.centos.ora: 未知的错误

解决 "Could not resolve host: mirrorlist.centos.org; 未知的错误"

安装yum报以下错误:
解决   "Could not resolve host: mirrorlist.centos.or
错误引起主要是因为环境读取不到yun引起的。可以考虑/etc/sysconfig/network-scripts/ifcfg-eth0 配置出错导致网络不通。
或者/etc/resolv.conf的DNS配置出错。或者可以考虑清楚yum缓存影响(yum clean all)
经过尝试之后,以下步骤解决了我的问题:
vi /etc/resolv.conf
解决   "Could not resolve host: mirrorlist.centos.or

nameserver 219.141.136.10
nameserver 219.141.140.10

然后重启网络
解决   "Could not resolve host: mirrorlist.centos.or
[root@tutu-mongodb04 ~]# /etc/init.d/network restart
再安装 yum ,就可以了。
解决   "Could not resolve host: mirrorlist.centos.or
问题解决。

转载于:https://blog.51cto.com/11699706/2362520

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/818996
推荐阅读
相关标签
  

闽ICP备14008679号