Apache2.2 安装后:the requested operation has failed 问题定位
来源:互联网 发布:flash小游戏源码 编辑:程序博客网 时间:2024/05/14 05:01
今天按照网上的指点安装Apache2.2,安装的过程很顺利,结果发现安装完成之后右下角的Apache图标是红色的,也就是没有启动,好,那我点击图标,选择“start”,结果就出现了一个对话框提示“the requested operation has failed”。不能启动。非常郁闷,因为我完全是新手,只得上网查(网络真不错)。
看了很多文章,总结起来大概有两个方面导致上面的错误:
一是80端口被其他程序或者服务给占用了;
二是配置出现错误,也就是安装目录下的Apache2.2\conf\httpd.conf,这个配置文件里面的问题;
OK,我先查是不是第一个错误,那怎么查端口的使用情况呢?
在命令行使用netstat -aon|findstr "80"
这个命令就可以查看到使用80这个端口的程序了。然后我就看到了一些使用80端口的进程PID,通过tastlist /FI "PID eq ***" (***表示PID)就可以看到是哪些程序在使用了(或者直接通过任务管理器->进程->查看->选择列,把PID勾上,也可以看到相应的进程)。
OK,把他们统统关掉。然后start Apache,结果还是出现一样的问题。
没办法,好在还有一种可能性(一开始我就奇怪了,我都从来没配置过httpd.conf,怎么问题会在它上面)。看网上的资料,在命令行内进入安装目录Apache2.2\bin,使用命令httpd -t,然后出现“Syntax error on line 133 of E:/Apache2.2\conf/httpd.conf :ServerAdmin takes one argument, the email address of the server administrator”,看它提示信息,说明,在这个配置文件里面的133行,ServerAdmin需要一个参数。赶快定位到这个文件的133行,发现果然ServerAdmin后面没有任何参数,原来这个是设置管理员邮件地址的,而我在安装的时候没有填写,所以它空着了,运行就出现错误。那么只要在这个参数前面加个#把它注释掉,或者给它添加一个邮箱(应该也可以)。
之后,start,发现已经可以启动了。
OK,继续往下走~~~
声明:欢迎转载,转载请注明出处。
- Apache2.2 安装后:the requested operation has failed 问题定位
- Apache2.2 安装后:the requested operation has failed 问题定位
- Apache2.2启动时报错:The requested operation has failed!
- 解决Apache2.2安装之后启动出现“the requested operation has failed”
- apache 使用之三(解决安装后出现的问题 the requested operation has failed)
- the requested operation has failed!
- Apache2.2 提示the requested operation has failed并无法启动
- apache遇到The requested operation has failed的问题
- Apache 提示the requested operation has failed
- the requested operation has failed"解决方案
- apache:the requested operation has failed
- apache:the requested operation has failed
- php提示“the requested operation has failed”
- Apache the requested operation has failed
- Apache与PHP配置后重启动Apache提示:the requested operation has failed
- php5.2.6安装配置xdebug 提示the requested operation has failed 解决办法
- apache安装完成之后,start出现了"the requested operation has failed !"
- 解决Apache Service的the requested operation has failed报错问题
- 2012腾讯春季实习生面试经历(一)
- PHP+apache+mysql环境的搭建
- jsp lesson4 part3
- 乔布斯经典语录
- Git相关配置
- Apache2.2 安装后:the requested operation has failed 问题定位
- jsp lesson5 part1
- Matlab中如何读取TXT数据文件[转载]
- 虚拟机开发环境搭建(tftp,nfs,samba,arm-linux-gcc)
- apache2.2.15与PHP5.3.3安装设置完成后,apache启动失败
- Android 手机连接电脑
- Ubuntu 查找命令
- HelloWorld之firebug调试技巧
- 《C++字符串完全指南——第二部分:字符串的封装类》