Apache "No services installed"问题的处理以及Apache提示 the requested operation has failed而无法启动

 

windows安装Apache,注册服务出现“(OS 5)拒绝访问。 : AH00369: Failed to open the WinNT service manager..."错误


在安装Apache的时候,我下载的是zip格式,不是msi安装版,需要自己注册服务,才能在桌面任务栏里有httpd的图标。

结果在cmd命令行里输入安装服务命令的时候出错,出错信息界面如下:

Apache "No services installed"问题的处理以及Apache提示 the requested operation has failed而无法启动_第1张图片

错误信息提示我没有用管理员身份登录!

解决方案如下:

Apache "No services installed"问题的处理以及Apache提示 the requested operation has failed而无法启动_第2张图片

打开cmd程序的时候以管理员身份运行就行了。

然后就安装成功了,界面如下:

Apache "No services installed"问题的处理以及Apache提示 the requested operation has failed而无法启动_第3张图片

OK,问题搞定!

修改httpd.conf文件后启动Apache会报 the requested operation has failed,这时候不显示具体问题很郁闷,

可以用命令行模式启动apache,并带上参数,apache会提示你哪句有误,然后就可以针对性的解决。

检查错误方法:进入cmd 然后进入 Apache安装目录(具体为你自己的安装目录)/bin> httpd.exe -w -n "Apache24" -k start


你可能感兴趣的:(Apache "No services installed"问题的处理以及Apache提示 the requested operation has failed而无法启动)