xampp命令行启动错误

xampp命令行启动错误

本文介绍了Apache/xampp命令行启动错误:AH00436:没有安装名为"Apache2.4"的服务.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在带有Xampp发行版的Windows 7 Pro上安装了Apache服务器. Apache可以从XAMPP控制面板很好地启动,但是我希望能够从命令提示符下对其进行控制.当我尝试从命令提示符启动它时,出现以下错误:

I installed Apache server on Windows 7 Pro with Xampp distribution. Apache starts fine from the XAMPP Control Panel, but I want to be able to control it from a command prompt. When I try to start it from the command prompt, I am getting the following error:

C:\>httpd -k start [Fri Jun 14 13:21:59.055815 2013] [mpm_winnt:error] [pid 6344:tid 144] (OS 2)The system cannot find the file specified. : AH00436: No installed service named "Apache2.4".

C:\>httpd -k start [Fri Jun 14 13:21:59.055815 2013] [mpm_winnt:error] [pid 6344:tid 144] (OS 2)The system cannot find the file specified. : AH00436: No installed service named "Apache2.4".

我试图更改httpd.conf中的侦听端口.它不会改变任何东西.有任何线索吗?

I tried to change the Listen port in httpd.conf. It does not change anything. Any clues ?

谢谢.

推荐答案

在我下载Windows 2.4的Apache 2.4并尝试启动它之后,"AH00436:没有安装名为"Apache2.4"的服务"出现了完全相同的问题第一次.

I had absolutely the same problem with the "AH00436: No installed service named "Apache2.4"" after I downloaded Apache 2.4 for Windows and tried to start it the first time.

解决方案非常非常简单.当您尝试通过"httpd -k start"手动尝试启动Web服务器时收到错误消息,但尚未定义任何服务.

The solution was very very simple. You get the error message when you manually try to start the webserver by "httpd -k start", but no service was defined yet.

只需执行"httpd -k安装",Windows服务即被添加到注册表中.之后,"httpd -k start"可以正常工作,而不会出现错误消息.

just do a "httpd -k install" and the windows service is added to the registry. after that, the "httpd -k start" works without error message.

这篇关于Apache/xampp命令行启动错误:AH00436:没有安装名为"Apache2.4"的服务.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-28 01:02