Apache 啟動失敗

# /etc/init.d/httpd start
啟動 httpd:httpd: Could not determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[失敗]

// 查詢error_log (/var/log/httpd/error_log),出現下列錯誤
mod_unique_id: unable to find IPv4 address of “h39-203-70-33.askey.com.tw”

//解決方法 加入host
# vi /etc/hosts
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
203.70.33.39 h39-203-70-33.askey.com.tw localhost

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *