隨筆-28  評(píng)論-15  文章-81  trackbacks-0

          apache安裝完之后,右下角的圖標(biāo)卻是紅色的。放鼠標(biāo)上去的提示是:No services installed ,很顯然,是由于服務(wù)沒(méi)有安裝。

          解決辦法是:

          我的安裝路徑是:C:\Program Files\Apache Software Foundation\Apache2.2

          1、打開(kāi)cmd定位到:C:\Program Files\Apache Software Foundation\Apache2.2\bin

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

          出現(xiàn)以下提示:

          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

          解決這個(gè)問(wèn)題方法:把/conf/httpd.conf文件的#ServerName 前的#去掉,再執(zhí)行上面的操作。     

          再輸入net start apache2

          之后我們看見(jiàn)了成功的信息

          httpd: Could not reliably determine the server's fully qualified domain name
          在windows下安裝好apache服務(wù)器后,重新啟動(dòng)后,回出現(xiàn)上面的錯(cuò)誤,只要把/conf/httpd.conf文件的#ServerName 前的#去掉就好了。

          posted on 2010-08-08 16:17 譚明 閱讀(1870) 評(píng)論(0)  編輯  收藏 所屬分類: PHP
          主站蜘蛛池模板: 体育| 杭锦后旗| 商水县| 宜兰县| 永顺县| 石景山区| 眉山市| 枣强县| 宝丰县| 都匀市| 莎车县| 涿鹿县| 福州市| 莱阳市| 安远县| 成武县| 金坛市| 泰和县| 阳泉市| 呼图壁县| 西贡区| 三台县| 黎川县| 枣庄市| 辽宁省| 綦江县| 宜城市| 昌平区| 光山县| 黄龙县| 乐清市| 开阳县| 扎兰屯市| 八宿县| 白沙| 白城市| 海林市| 泗水县| 长宁县| 绥阳县| 营山县|