1.1.1  现象

用命令行卸载Apache的服务,执行如下命令:

 httpd -k uninstall

 

结果显示错误提示:

[Fri Feb 21 10:25:24.768290 2014] [mpm_winnt:error] [pid 6872:tid 116] (OS 2)The system cannot find the file specified.  : AH00436: No installed service named "Apache2.4".

1.1.2  原因

卸载命令中没有指定名称,于是使用默认名称:apache2.4,但是安装服务时不是这个名称,因此没有找到该服务,所以报错。

1.1.3  解决

在卸载命令中指明服务的名称:

httpd -k uninstall –n "Apache24"