windows Windows系统服务管理中无法启动Apache服务

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21035454/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 11:14:50  来源:igfitidea点击:

Cannot start Apache service in Windows system service administration

windowsapacheservicestartup

提问by Sarotti

Once I restarted my PC, then Apache 2.25 rejected to work anymore. I went to the system service administration, found couldn't get Apache service started.

一旦我重新启动了我的电脑,Apache 2.25 就被拒绝了。我去了系统服务管理,发现无法启动Apache服务。

The possibility that the port Apache commonly using occupied by other processes is excluded. Actually the port was used by Adobe Flash Media Server, but I terminated all the related services and made sure the port was available but I still couldn't startup it. Then I went through httpd.confagain, all the configs remain the same as it works normally before, and nothing wrong was feedback from the Apache logs.

排除Apache常用的端口被其他进程占用的可能性。实际上该端口被Adobe Flash Media Server 使用,但我终止了所有相关服务并确保该端口可用,但我仍然无法启动它。然后我又看了httpd.conf一遍,所有的配置都和以前一样正常工作,Apache 日志的反馈也没有错。

Can anyone can give some clues to repair it?

任何人都可以提供一些线索来修复它吗?

回答by Leo Prince

If your apache is not starting with httpd.exe, Then there could be many possibilities. Try to start the httpd using console (command prompt)

如果您的 apache 不是以 httpd.exe 开头,那么可能有很多可能性。尝试使用控制台(命令提示符)启动 httpd

cd "\Program Files\path_to_apache_installation\Apache2.2\bin"
httpd.exe

If the apache console stops right away, Check the apache logs for some clues

如果 apache 控制台立即停止,请检查 apache 日志以获取一些线索

cd ..\logs
more < error.log

The logs will convey you more details why apache is not starting

日志将向您传达更多详细信息,为什么 apache 没有启动