Apache/xampp 命令行启动错误:AH00436:未安装名为“Apache2.4"的服务

编程入门 行业动态 更新时间:2024-10-14 10:40:48
本文介绍了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: No installed service named 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"的服务

本文发布于:2023-11-01 13:18:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1549426.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令行   错误   xampp   Apache   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!