系统找不到指定的文件: No installed service named"Apache2"
我顿时想起了,刚才把全部服务都干掉了,这时我进去服务,看到了apache只有错误的信息。这下坏了,我心想肯定弄不了,Google之后,我找到了解决方法,so easy,再也不用担心了。
是系统服务没有apache2这个,你到apache的bin目录下:
httpd.exe -k install -n apache2
D:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd -k install跟着就有了apache2这个服务了~~
Installing the Apache2.2 service
(OS 1073)指定的服务已存在。 : Failed to create WinNT Service Profile
D:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd.exe -k install
Installing the Apache2.2 service
(OS 1073)指定的服务已存在。 : Failed to create WinNT Service Profile
D:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd.exe -k start [Tue Mar 19 23:08:04 2013] [error] (OS 2)系统找不到指定的文件。 : No installed
service named "Apache2.2".
-------------------------------------以上是我在乱试 ----------------------------
D:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd -k install -n apache2
Installing the apache2 service
The apache2 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
httpd: Could not reliably determine the server's fully qualified domain name, us
ing 192.168.0.102 for ServerName
然后你就可以再次start httpd服务了。
来自点击打开链接