文章類別

Hard Ware (3) iSCSI (2) Joomla (1) Linux (9) MySQL (3) NAS (2) Postfix (3) SAN (2) VMWare (1)

2010年11月21日 星期日

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

在啟動 httpd 時出現 www.ky-zone.net* n$ ]! {# `# Y- F
Starting httpd: httpd: apr_sockaddr_info_get() failed for MYHOST
& n2 R8 f+ O( L; S/ Khttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName.
; |; b0 R) J# Z; @* f/ owww.ky-zone.net$ 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

4 q% L" o6 \: cKY - ZONE所以要解決這個問題可以設定 ServerName 或者在 /etc/hosts 中填入自己的主機名稱 MYHOST,像這樣:www.ky-zone.net- Z! M/ N. Z9 o8 [& X0 t* _

4 y9 S, m- }" H1 Q- p>vi /etc/hosts
n) c8 S. R; i- p) o; w, xKY - ZONE; S! X9 x5 w# ]9 c: Y8 |0 X
127.0.0.1 localhost.localdomain localhost MYHOST

沒有留言:

張貼留言