2014-03-05 11:41:01
来 源
ITJS.CN
Apache
本文介绍Apache启动失败的解决办法,希望对于初学Apache服务器相关的朋友有帮助,更多Apache安装、配置、报错处理等资源请本站内搜索。

1、apache启动失败出错显示:

Godisu>net start apache2.

The Apache2.2 service is starting.

The Apache2.2 service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.

2、查看apache日志:

[Thu Dec 23 08:43:06 2010] [notice] Apache/2.2.4 (Win32) PHP/5.2.3 configured -- resuming normal operations

[Thu Dec 23 08:43:06 2010] [notice] Server built: Jan  9 2007 23:17:20

[Thu Dec 23 08:43:06 2010] [notice] Parent: Created child process 3820

[Thu Dec 23 08:43:06 2010] [notice] Child 3820: Child process is running

[Thu Dec 23 08:43:06 2010] [crit] (OS 10022)提供了一个无效的参数。  : Child 3820: setup_inherited_listeners(), WSASocket failed to open the inherited socket.

[Thu Dec 23 08:43:06 2010] [crit] Parent: child process exited with status 3 -- Aborting.

3、解决方法:

打开本地连接的TCP/IP属性下的Wins

去掉勾选LMHOSTS查询

NetBIOS设置选择“启用TCP/IP上的NETBIOS”

4、再次启动apache服务:

Godisu>net start apach

The Apache2.2 service is starting.

The Apache2.2 service was started successfully.

服务已经启动成功了。

5、再次查看apache日志:

[Thu Dec 23 08:43:06 2010] [crit] Parent: child process exited with status 3 -- Aborting.

[Thu Dec 23 08:44:56 2010] [notice] Apache/2.2.4 (Win32) PHP/5.2.3 configured -- resuming normal operations

[Thu Dec 23 08:44:56 2010] [notice] Server built: Jan  9 2007 23:17:20

[Thu Dec 23 08:44:56 2010] [notice] Parent: Created child process 2424

[Thu Dec 23 08:44:56 2010] [notice] Child 2424: Child process is running

[Thu Dec 23 08:44:56 2010] [notice] Child 2424: Acquired the start mutex.

[Thu Dec 23 08:44:56 2010] [notice] Child 2424: Starting 64 worker threads.

[Thu Dec 23 08:44:56 2010] [notice] Child 2424: Starting thread to listen on port 80.

[Thu Dec 23 08:44:56 2010] [notice] Child 2424: Starting thread to listen on port 8080.

日志显示启动正常,打开浏览器输入服务器域名或IP,测试网页OK

已经全部OK。完毕!~

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。