: AH00436: No installed service named "Apache2.4". 错误解决过程记录

: AH00436: No installed service named"Apache2.4".  错误解决过程记录


安装过程

1.下载apache2.4版本,文件名是:httpd-2.4.17-x86.zip。解压到D盘server目录下,路径是:D:\server\httpd-2.4.17-x86。

2.修改httpd.conf配置文件,路径:D:\server\httpd-2.4.17-x86\Apache24\conf\httpd.conf

  修改目录

  #Define SRVROOT "/Apache24"
  DefineSRVROOT "D:/server/httpd-2.4.17-x86/Apache24"

3.用管理员身份启动cmdcdapachebin目录。

cd D:\server\httpd-2.4.17-x86\Apache24\bin

4.启动apache

输入启动命令httpd.exe -kstart 报错,信息如下:[Thu Mar 10 16:29:30.616810 2016] [mpm_winnt:error] [pid7376:tid 172] (OS 2)系统找不到指定的文件。  : AH00436: Noinstalled service named "Apache2.4".

 

 

问题解决过程:

1.查看防火墙,已关闭。  --排除

2.查询80端口,使用netstat-ano查询本地是否用80端,经查询无80端口占用。--排除

3.apacheSRVROOT配置正确。 --排除

4.尝试安装apache,用管理员身份运行cmdcdapachebin目录,输入命令:httpd.exe -k install.

Installing the 'Apache2.4' service

The 'Apache2.4' service is successfullyinstalled.

Testing httpd.conf....

Errors reported here must be corrected beforethe service can be started.

已安装成功。  再次尝试启动apache,输入命令:httpd.exe-k start启动成功。浏览器地址栏输入访问地址:http:localhost,显示apache页面。



Java高级群1群:224651178

Java高级群2群:134787504


  • 4
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值