Apache错误:the requested operation has failed 的解决方法

日期:01-07  浏览:

the requested operation,apache报错,apache启动失败,apache the requested 

 

方法/步骤

 
  1.  

    很长一段时间没在业余时间写代码了,昨天晚上启动apache时,居然弹窗:the requested operation has failed,搞了半天居然是前阵子安装SQL Server2005时自动安装了IIS,占用了80端口...

    解决办法:1.更换apache的监听端口;

                      2.停止IIS或更换IIS的监听端口;

  2.  

    1.首先找到问题原因:cmd--命令端--切换到apache的bin目录,执行如下命令:httpd.exe -w -n "apache2.2" -k start;

    PS:apache2.2为你的apache服务名称,有的为apache,以自己的为准。

    the requested operation has failed
    the requested operation has failed
  3.  

    2.如果为OS 10013错误,则说明问题是80端口被占用,先去服务里将IIS关闭掉,然后重启apache,如果还是继续弹窗the requested operation has failed...需要去Internet信息服务里面停止网站;

    the requested operation has failed
  4.  

    3.计算机--右键--管理--服务和应用程序--Internet信息服务--单击你的计算机名称,单击网站在右侧会显示网站的列表信息;

    the requested operation has failed
    the requested operation has failed
    the requested operation has failed
  5.  

    4.单击选中网站,在右侧选择绑定单击,编辑端口可以设置为8080或者别的,点击右下角的重新启动。如果IIS没用的话,可以直接关闭,这样重启apache就没问题了;

    如果需要彻底删除IIS的话,请参考这篇文章:

     

    the requested operation has failed
    the requested operation has failed
    the requested operation has failed
  6.  

    5.还有一种方法是更换apache的监听端口:apache安装目录--conf--httpd.conf,找到Listen 80,更换为别的端口,如Listen 8080,保存后重启apache。

    the requested operation has failed

  7. 以上方法仅限于80端口被占用的情况。


上一篇:启动Apache时提示错误“Cannot load php5apache2_2.dll into server”
下一篇:解决Apache/PHP无法启动的问题

网友评论


点击图片更换


查看更多评论
 

推荐文章

·apache2.4配置cgi和fastcgi
·Apache2.2+fastCGI+(多版本)PHP配置
·启动Apache时提示错误“Cannot load php5apache2_2.dll into server”
·apache+php5.4+Zend Guard Loader 的安装方法
·解决Apache/PHP无法启动的问题
·apache防盗链 简单预防与技术详解
·Apache和Nginx防盗链的几种配置方法
·Zend Guard Loader的配置与安装