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。完毕!~