【发布时间】:2010-12-15 16:21:02
【问题描述】:
我一直在 localhost 上工作,直到我在 Windows 7 上运行了一些更新并重新启动。现在我无法再从浏览器访问 localhost。但是 Aapache 服务正在运行。显示在系统托盘上。我可以知道是什么问题吗?
错误日志:
[Thu Dec 16 00:33:35 2010] [notice] Parent: Received restart signal -- Restarting the server.
[Thu Dec 16 00:33:35 2010] [notice] Child 4248: Exit event signaled. Child process is ending.
[Thu Dec 16 00:33:36 2010] [notice] Child 4248: Released the start mutex
[Thu Dec 16 00:33:37 2010] [notice] Child 4248: All worker threads have exited.
[Thu Dec 16 00:33:37 2010] [notice] Child 4248: Child process is exiting
[Thu Dec 16 00:33:40 2010] [notice] Apache/2.2.17 (Win32) PHP/5.2.14 configured -- resuming normal operations
[Thu Dec 16 00:33:40 2010] [notice] Server built: Oct 18 2010 01:58:12
[Thu Dec 16 00:33:40 2010] [notice] Parent: Created child process 4672
[Thu Dec 16 00:33:40 2010] [notice] Child 4672: Child process is running
[Thu Dec 16 00:33:40 2010] [notice] Child 4672: Acquired the start mutex.
[Thu Dec 16 00:33:40 2010] [notice] Child 4672: Starting 64 worker threads.
[Thu Dec 16 00:33:40 2010] [notice] Child 4672: Starting thread to listen on port 80.
我发现本地地址 0.0.0.0:80 绑定到 PID 1476 即 httpd.exe
【问题讨论】:
-
重启apache,检查你的HOSTS文件,检查apache是否可以监听80端口(检查错误日志)
-
主机文件已经设置为 127.0.0.1 到 localhost
-
重启apache并检查apache日志文件
-
再次重启windows!!!看看你得到了什么......
-
netstat -a -n显示什么正在监听端口 80?