在啟動 httpd 時出現 www.ky-zone.net* n$ ]! {# `# Y- F
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.
$ h% u3 W# f4 V5 a. m4 N) q5 C. R
這個問題應該是沒有在 /etc/httpd/conf/httpd.conf 中設定 ServerName 所以它會用主機上的名稱來取代,首先會去找 /etc/hosts 中有沒有主機的定義。$ c" d3 a$ H d% e) I
所以要解決這個問題可以設定 ServerName 或者在 /etc/hosts 中填入自己的主機名稱 MYHOST,像這樣:www.ky-zone.net- Z! M/ N. Z9 o8 [& X0 t* _
>vi /etc/hosts
KY - ZONE; S! X9 x5 w# ]9 c: Y8 |0 X
127.0.0.1 localhost.localdomain localhost MYHOST
沒有留言:
張貼留言