2013-09-10 17:01:04
来 源
ITJS.CN
Apache故障处理
该篇讲述Apache服务器Nameorservicenotknown:mod_unique_id错误,希望对于初学Apache服务器相关的朋友有帮助,更多Apache安装、配置、报错处理等资源请本站内搜索。

以前更改过主机名,但后来又更改了过来,但是httpd出错误,看日志内容如下:(请问该怎么更改)

[Wed Dec 18 04:11:24 2002] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "zeasen"

Configuration Failed!

[Wed Dec 18 04:33:44 2002] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "zeasen"

Configuration Failed!

[Wed Dec 18 20:38:27 2002] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "zeasen"

Configuration Failed!

[Wed Dec 18 21:03:36 2002] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "zeasen"

Configuration Failed!

[Wed Dec 18 21:09:46 2002] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "zeasen"

Configuration Failed!

[Thu Dec 19 04:13:07 2002] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "zeasen"

Configuration Failed!

[Thu Dec 19 04:20:44 2002] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "zeasen"

Configuration Failed!

----------------------------------------------------------------------------

apache启动失败

我也遇到相同的问题,修改/etc/hosts,添加一行

127.0.0.1    zeasen                    localhost

就ok了 

用了好长时间才解决了,应该好好看日志文件 /var/log/

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。