Apache/xampp 命令行启动错误:AH00436:未安装名为“Apache2.4"的服务; [英] Apache/xampp command line start error: AH00436: No installed service named "Apache2.4"

查看:28
本文介绍了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)系统找不到指定的文件.: AH00436: 没有安装名为Apache2.4"的服务.

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

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

谢谢.

推荐答案

在我下载 Apache 2.4 for Windows 并尝试启动它后,我遇到了与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"启动网络服务器时收到错误消息,但尚未定义任何服务.

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 install",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"的服务;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆