啟動 httpd 時出現 httpd: apr_sockaddr_info_get() failed for

版主: stnet253

回覆文章
tony
文章: 585
註冊時間: 2012-02-26, 07:04
聯繫:

啟動 httpd 時出現 httpd: apr_sockaddr_info_get() failed for

未閱讀文章 tony »

在啟動 httpd 時出現

Starting httpd: httpd: apr_sockaddr_info_get() failed for MYHOST
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName.

這個問題應該是沒有在 /etc/httpd/conf/httpd.conf 中設定 ServerName 所以它會用主機上的名稱來取代,首先會去找 /etc/hosts 中有沒有主機的定義。

所以要解決這個問題可以設定 ServerName 或者在 /etc/hosts 中填入自己的主機名稱 MYHOST,像這樣:

>vi /etc/hosts

127.0.0.1 localhost.localdomain localhost MYHOST

就可以解決了 =)
回覆文章

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客