Apache 2.4无法在Windows 10上安装

时间:2017-08-23 20:22:29

标签: windows-10 apache2.4

Windows 10
Apache 2.4-64 (httpd-2.4.27-Win64-VC15.zip)

我下载了httpd-2.4.27-Win64-VC15.zip并将其解压缩到c:Apache24

我修改了httpd.conf文件:

Listen *:80
ServerName localhost:80

cd \Apache24\bin

httpd -k shutdown

回应是:

The 'Apache2.4' service is not started

httpd -k install

回应是:

[Wed Aug 23 13:17:03.258023 2017] [mpm_winnt:error] [pid 1196:tid 412] AH00433: Apache2.4: Service is already installed.

有一次,Apache 2.4被安装到一个名为c:\ localhost的目录中,可能已被不正确地删除。

我检查了服务/进程,并杀死了IIS服务器,并且没有提到运行Apache 2.4。我还检查了启动文件夹,并且没有Apache 2.4

似乎Apache 2.4或其他一些ghost进程认为Apache 2.4仍在不存在的c:\ localhost文件夹中运行。我重新启动了系统,但无济于事。知道如何诊断这个问题吗?

3 个答案:

答案 0 :(得分:0)

这可能有所帮助:

  1. 转到C:\ Apache24 \ conf并在记事本中打开httpd.conf

  2. 搜索'Listen 80'

  3. 将端口号更改为85,即“Listen 85”或您喜欢的任何内容

答案 1 :(得分:0)

CMD

cd \apache24\bin

httpd -k uninstall       

httpd -k install 

答案 2 :(得分:0)

CMD

中尝试此操作
this.handleInitError_

对我有用

相关问题