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

yum Couldn't resolve host....

时间:2014-08-11 15:21:33      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:linux dns yum couldn't resolve

linux进行软件安装时,报错couldn‘t resolve host.....

这个原因是dns的配置错误,解决方法如下:


 1.重启网卡 :service network restart


如果不行的话,先修改配置文件,再重启网卡

1、打开文件/etc/resolv.conf在其中添加:
 nameserver 8.8.8.8
 #nameserver 8.8.4.4
 #search localdomain


yum Couldn't resolve host....,布布扣,bubuko.com

yum Couldn't resolve host....

标签:linux dns yum couldn't resolve

原文地址:http://5148737.blog.51cto.com/5138737/1538483

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