“windows 不能在本地计算机启动Apache2” 解决办法

来源:互联网 发布:淘宝客服总结报告 编辑:程序博客网 时间:2024/06/05 17:00

某天在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启动成功了。


0 0
原创粉丝点击