1. 程式人生 > >“windows 不能在本地計算機啟動Apache2” 解決辦法

“windows 不能在本地計算機啟動Apache2” 解決辦法

某天在windows xp下啟動apache,發現起不來,於是檢視error.log,從中發現了一些異常資訊:

httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.109 for ServerName

不能識別伺服器完全有效的域名,於是我開始檢查 httpd.conf檔案,果然發現了

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName localhost

 最後一句被註釋掉了,於是開啟並儲存。

apache啟動成功了。