“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启动成功了。

 

 

 

 

你可能感兴趣的:(技术交流)