歡迎您光臨本站 註冊首頁

不能啟動httpd服務,提示 mod_unique_id: unable to find IPv4 address of ...

伺服器意外斷電關閉后,重新啟動后,apache不能啟動,出現httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName,我修改了httpd.conf裡面的ServerName,執行/usr/local/etc/rc.d/apache.sh start,出現了apache start,但是httpd根本沒有起來。

我接著查httpd-error.log,有下面的記錄
(EAI 7)No address associated with hostname: mod_unique_id: unable to find IPv4 address of "ns.org.cn"
Configuration Failed

什麼原因呢?是因為沒有域名解析?ns.org.cn

[ 本帖最後由 whd100 於 2007-5-21 13:44 編輯 ]
《解決方案》

ns.org.cn這個是什麼?
echo >> /etc/hosts
echo 127.0.0.1 ns.org.cn >> /etc/hosts
《解決方案》

那是伺服器的域名,我剛剛搞定了,註釋掉LoadModule unique_id_module libexec/apache2/mod_unique_id.so就行了。以前都沒有出現過這種問題,不知道為啥
《解決方案》

我本來也一直啟動不起來,提示:

greate@freebsd# /usr/local/etc/rc.d/apache22 start
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for freebsd.greate.cn
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
Starting apache22.
httpd: apr_sockaddr_info_get() failed for freebsd.greate.cn
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

後來在一個台灣教育網找到,把: LoadModule unique_id_module   libexec/apache/mod_unique_id.so 註釋掉就可以了,不知道以後會不會有什麼影響?

:em08:

[火星人 ] 不能啟動httpd服務,提示 mod_unique_id: unable to find IPv4 address of ...已經有854次圍觀

http://coctec.com/docs/service/show-post-31865.html