码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS yum时出现“Could not retrieve mirrorlist ”的解决办法——resolv.conf的配置

时间:2014-07-09 13:13:24      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:style   color   strong   os   line   rgb   

原因:没有配置resolv.conf
解决方法:
到/etc目录下配置resolv.conf加入nameserver IP,如:
nameserver 8.8.8.8
nameserver 8.8.4.4
search localdomain
保存再次运行上面命令就可以。
关键一点  serach那一行要在nameserver的后面

CentOS yum时出现“Could not retrieve mirrorlist ”的解决办法——resolv.conf的配置,布布扣,bubuko.com

CentOS yum时出现“Could not retrieve mirrorlist ”的解决办法——resolv.conf的配置

标签:style   color   strong   os   line   rgb   

原文地址:http://blog.csdn.net/jasper_success/article/details/37568209

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!