win8系统更新后Apache报错

来源:互联网 发布:淘宝店铺被找回犯法吗 编辑:程序博客网 时间:2024/05/16 06:16

更新完win8系统之后发现apache亮红点,localhost肯定没有结果的,搜了一下答案,是注册表没有更新,需要命令模式下(cmd)重新安装一下apache/bin/目录下的httpd.exe文件

切换到该目录下后,输入:httpd.exe -k install -n Apache2.2.25(我查看了一下属性,显示版本是2.2.25),结果却报错,错误提示:
os5 拒接访问,fial to open the WinNt service managr……
解决问题的办法是找到在 c/windows/system32/cmd
右键–以管理员身份运行,cmd标题栏提示“管理员:XX”字样,然后重新切换到apache 的httpd.exe ,输入命令httpd.exe -k install -n Apache2.2.25,
反馈:The apache2.2.25 service is successfully installed.
Testing httpd.conf….

然后启动bin目录下的apachemonitor即可,重新显示绿色,localhost正常!
注册表到底是什么样子的呢?
regedit命令查看注册表信息如下

apache的注册表信息是这个样子的

0 0
原创粉丝点击