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