现在的位置: 首页 > 综合 > 正文

apache安装后no service install解决办法

2014年09月12日 ⁄ 综合 ⁄ 共 759字 ⁄ 字号 评论关闭

win7中apache安装后,在Monitor Apache Servers中提示“No services installed”,提示服务器没有被安装。

以下是解决步骤:

1、在在运行中键入:cmd ,出来DOS窗口

2、切换到apache所在目录的bin文件夹, cd\apache\bin

3、运行:httpd.exe -k install -n apache2

     出现提示:

     Installing the apache2 service

     <OS 5>拒绝访问。:Failed to open the WinNT service manager

哦,安全问题,看看管理员身份运行怎么样。

第一步:点击所有程序-->附件-->命令提示符-->右键-->以管理员身份运行,出来DOS窗口

第二步:切换到apache所在目录的bin文件夹, cd\apache\bin

第三步:运行:httpd.exe -k install -n apache2

          出现提示:

          Installing the apache2 service

          The apache2 service is successfully installed.

           Testing httpd.conf....

           .....

          服务安装成功,再看任务栏中的图标,有变化了,提示"Running none of 1 Apache service ",在点击图标,出现"apache2",再点击"apache2",出现Star,Stop,Restar,且只有start是亮的,点击它,哦,启动了,图标的小圆圈中是绿色的箭头。

          在浏览器中输入http://localhost:8080/(我安装的8080端口),出现

It works!

 完事大吉!

【上篇】
【下篇】

抱歉!评论已关闭.