Windows 无法在本地计算机上启动 Apache2 - 问题 [英] Windows could not start the Apache2 on Local Computer - problem
问题描述
在安装 Apache2 期间,我在 cmd 窗口中收到以下消息:
During the installation of Apache2 I got the following message into cmd window:
安装Apache2.2服务Apache2.2服务成功安装.测试 httpd.conf....
Installing the Apache2.2 service The Apache2.2 service is successfully installed. Testing httpd.conf....
此处报告的错误必须更正在服务可以启动之前.httpd.exe:无法可靠确定服务器的完全合格域名,使用 192.168.1.3 表示ServerName (OS 10048)只有一种用法每个套接字地址(协议/网络地址/端口)通常是允许的.: make_sock: 无法绑定到地址0.0.0.0:80 没有可用的侦听套接字,正在关闭 无法打开日志 注意错误或消息上,然后按 键出口.24...
Errors reported here must be corrected before the service can be started. httpd.exe: Could not reliably determine the server's fully qualified domain name , using 192.168.1.3 for ServerName (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Note the errors or messages above, and press the key to exit. 24...
安装后一切正常,但事实并非如此.如果我尝试启动服务,我会收到以下消息:
and after installing everything look fine, but it isn't. If I try to start service I got the following message:
Windows 无法启动 Apache2本地计算机.想要查询更多的信息,查看系统事件日志.如果这是非 Micorsoft 服务,请联系服务供应商,并参考特定于服务的错误代码 1.
Windows could not start the Apache2 on Local Computer. For more information, review the System Event Log. If this is a non-Micorsoft service, contact the service vendor, and refer to service-specific error code 1.
Apache2 版本为 2.2.9
Apach2 version is 2.2.9
有没有人有同样的问题,或者可以帮助我.
Does anyone have the same problem, or could help me.
推荐答案
有其他程序在监听 80 端口,通常怀疑是
There is some other program listening on port 80, usual suspects are
- Skype(侦听端口 80)
- NOD32(将 Apache 添加到 IMON 例外列表以允许 apache 绑定)
- 其他一些杀毒软件(同上)
纠正它的方法是关闭使用端口 80 的程序,或者将其配置为使用不同的端口,或者使用 httpd.conf 中的 Listen 指令将 Apache 配置为侦听不同的端口.如果是防病毒软件,请配置防病毒软件以允许 Apache 绑定到您选择的端口.
Way to correct it is either shutting down the program that's using the port 80 or configure it to use a different port or configure Apache to listen on a different port with the Listen directive in httpd.conf. In the case of antivirus configure the antivirus to allow Apache to bind on the port you have chosen.
诊断哪个应用程序(如果有)绑定到端口 80 的方法是使用这些选项运行 netstat,查找本地 IP 地址(第二列)旁边的 :80 并找到 PID(最后一列).然后,在任务管理器上,您可以找到哪个进程具有您在上一步中获得的 PID.(您可能需要在任务管理器中添加 PID 列)
Way to diagnose which app, if any, has bound to port 80 is run the netstat with those options, look for :80 next to the local IP address (second column) and find the PID (last column). Then, on the task manager you can find which process has the PID you got in the previous step. (You might need to add the PID column on the task manager)
C:\Users\vinko>netstat -ao -p tcp
C:\Users\vinko>netstat -ao -p tcp
Conexiones activas
Proto Dirección local Dirección remota Estado PID
TCP 127.0.0.1:1110 127.0.0.1:51373 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:51379 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:51381 ESTABLISHED 388
TCP 127.0.0.1:1110 127.0.0.1:51382 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:51479 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:51481 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:51483 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:51485 ESTABLISHED 388
TCP 127.0.0.1:1110 127.0.0.1:51487 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:51489 ESTABLISHED 388
TCP 127.0.0.1:51381 127.0.0.1:1110 ESTABLISHED 5168
TCP 127.0.0.1:51485 127.0.0.1:1110 ESTABLISHED 5168
TCP 127.0.0.1:51489 127.0.0.1:1110 ESTABLISHED 5168
TCP 127.0.0.1:59264 127.0.0.1:59265 ESTABLISHED 5168
TCP 127.0.0.1:59265 127.0.0.1:59264 ESTABLISHED 5168
TCP 127.0.0.1:59268 127.0.0.1:59269 ESTABLISHED 5168
TCP 127.0.0.1:59269 127.0.0.1:59268 ESTABLISHED 5168
TCP 192.168.1.34:51278 192.168.1.33:445 ESTABLISHED 4
TCP 192.168.1.34:51383 67.199.15.132:80 ESTABLISHED 388
TCP 192.168.1.34:51486 66.102.9.18:80 ESTABLISHED 388
TCP 192.168.1.34:51490 74.125.4.20:80 ESTABLISHED 388
如果您想禁用 Skype 侦听端口 80 和 443,您可以点击链接http://www.mydigitallife.info/disable-skype-from-using-opening-and-listening-on-port-80-and-443-on-local-computer/
If you want to Disable Skype from listening on port 80 and 443, you can follow the link http://www.mydigitallife.info/disable-skype-from-using-opening-and-listening-on-port-80-and-443-on-local-computer/
这篇关于Windows 无法在本地计算机上启动 Apache2 - 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!