apache http server 启动失败

系统找不到指定的文件: 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
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
跟着就有了apache2这个服务了~~

然后你就可以再次start httpd服务了。

 来自点击打开链接

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值