标签: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
标签:linux dns yum couldn't resolve
原文地址:http://5148737.blog.51cto.com/5138737/1538483