我在带有 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"的服务
发布评论