Archive for 2 月, 2013

service httpd restart 问题,Temporary failure in name resolution: Failed to resolve server name解决办法

service httpd restart 问题,Temporary failure in name resolution: Failed to resolve server name解决办法

问题:Starting httpd: [Wed Jul 25 16:09:56 2012] [error] (EAI 3)Temporary failure in name resolution: Failed to resolve server name for 192.168.1.2 (check DNS) — or specify an explicit ServerName

这个一般是vps或者服务器上面有多个ip造成的,解决方法如下:

在/etc/hosts追加如下:

192.168.1.2 localhost
192.168.1.3 localhost 如果有更多都可以加上

评论