`

Apache无法启动解决 the requested operation has failed

阅读更多
Apache不能启动解决办法

原因一:80端口占用
例如IIS,另外就是迅雷。我的apache服务器就是被迅雷害得无法启用!

原因二:软件冲突
装了某些软件会使apache无法启动如Dr.com 你打开网络连接->TcpIp属性->高级->WINS标签 把netbios的lmhosts对勾去掉,禁用tcp/ip的netbios. 然后再启动应该就可以了。

原因三:httpd.conf配置错误如果apache的配置文件httpd.conf搞错了,在windows里启动它,会提示the requested operation has failed,这是比较郁闷的事,因为查错要看个半天。 其实可以用命令行模式启动apache,并带上参数,apache会提示你哪句有误,然后就可以针对性的解决。

检查错误方法:进入cmd 然后进入 Apache安装目录(具体为你自己的安装目录)\bin> httpd.exe -w -n "Apache2" -k start

(引号中的Apache2修改为你的Apache服务名,我的是2.2.4版,服务名就是Apache2,可以到计算机服务里找)

提示133行有问题时(提示:Syntax error on line 133 of ...........),打开Apache安装目录\conf\httpd.conf 找到第133行的ServerAdmin (没有工具确定行数的按ctrl+F 用"ServerAdmin"关键字查找,一般会有两个,下面那个就是)这行在其后空一格,随便加个名字,例如,加上abc后,就可以解决了.


如果是端口占用(提示:(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。),先退出Apache,在httpd.conf中搜索Listen 80 ,将80改成8080或者别的端口号,重新运行一下Apache,这下应该能够启动了.

还有一种情况:
即使你这次启动了,下次你都有可能启动失败
在运行里输入:netsh winsock reset
一会儿cmd会提示你重启,不用理会,现在APACHE已经可以启动了。
其实就是一个winsock的修复

转自:http://www.linuxidc.com/Linux/2010-05/26203.htm
分享到:
评论

相关推荐

    apache启动报错:the requested operation has failed解决办法

    apache启动报错:the requested operation has failed解决办法的几种解决方法!

    Apache无法启动解决_the_requested_operation_has_failed.doc

    Apache无法启动解决_the_requested_operation_has_failed

    Apache提示 the requested operation has failed无法启动的解决方法大全

    是我这两天频繁遇到的问题。Apache服务器还真是问题少年!任何点改动都可能导致它无法使用,下面结合网上搜来的内容,总结下自己关于此问题的解决方法,分享给大家

    vcredist2008sp1

    在修改httpd.conf支持php后,启动apache,报“the requested operation has failed”错误。 使用,命令行测试:命令为httpd.exe -w -n "apache2_2" k start; 错误为Cannot load php5apache2_2.dll。解决方法如下: ...

    apache无法启动的可能原因分析及对策

    在遇到apache无法启动时,可以参照如下可能的原因进行问题分析。... 原因三:httpd.conf配置错误 如果apache的配置文件httpd.conf搞错了,在windows里启动它,会提示the requested operation has failed,这是比较郁

    shopex开发环境配置,php配置windows

    花了2天花时间,调试出来的。支持一下。...注意:apache_2.0.55,启动时报“The requested operation has failed!”, 1.有可能你的80端口被占用(迅雷会占这个端口,关了迅雷就好了)。 2.看apache日志。

    本地计算机无法启动Apache故障处理

    但按照教材上介绍的那样...重启Apache就会弹出出错提示框,提示”The requested operation has failed!” 然后打开服务,启动Apache2,就提示我: “Windows不能在本地计算机启动Apache2…….并参考特定服务错误代码1” 解

    Apache服务器无法使用的解决方法

    原因三:httpd.conf配置错误如果apache的配置文件httpd.conf搞错了,在windows里启动它,会提示the requested operation has failed,这是比较郁闷的事,因为查错要看个半天。其实可以用命令行模式启动apache,并带...

    Apeache启动不成功时,用命令行检测的方法

    1,在配置Apache服务器时,经常要在httpd.conf 修改和添加一些代码,编写中,误写或者写错时,无法正常启动时,直接报错The requested operation has failed! 2,对于新手来说,并不容易找出Apache的配置错误处,这...

    计算机网络第六版答案

    Because the router has the entire packet at time t1, it can begin to transmit the packet to the receiving host at time t1. At time t2 = t1 + L/R2, the router completes transmission and the entire ...

Global site tag (gtag.js) - Google Analytics