关于 Apache No services installed 的办法

Apache No services installed

apache安装完之后,右下角的图标却是红色的。放鼠标上去的提示是:No services installed ,很显然,是由于服务没有安装。

解决办法是:

我的安装路径是:C:/Program Files/Apache Software Foundation/Apache2.2

1、打开cmd定位到:C:/Program Files/Apache Software Foundation/Apache2.2/bin

2、输入httpd.exe -k install -n apache2

出现以下提示:

C:/Program Files/Apache Software Foundation/Apache2.2/bin>httpd.exe -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.exe: Could not reliably determine the server's fully qualified domain name
, using 192.168.1.212 for ServerName

解决这个问题方法:把/conf/httpd.conf文件的#ServerName 前的#去掉,再执行上面的操作。    

再输入net start apache2

之后我们看见了成功的信息

httpd: Could not reliably determine the server's fully qualified domain name
在windows下安装好apache服务器后,重新启动后,回出现上面的错误,只要把/conf/httpd.conf文件的#ServerName 前的#去掉就好了。

 

转自:http://hi.baidu.com/%C7%E1%D2%B9%C1%F7%E1%B0%C4%BE%C0%E6%C7%E1/blog/item/3e2f9e4b8b25332a09f7effe.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值