欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

完美解决:Apache启动问题—(OS 10022)提供了一个无效的参数

程序员文章站 2023-04-07 16:18:25
今天启动apache2始终无法启动,本以为又是端口问题,可后来查看并未有端口占用问题,于是查看错误日志如下:[sat jun 20 03:12:52 2009] [noti...
今天启动apache2始终无法启动,本以为又是端口问题,可后来查看并未有端口占用问题,于是查看错误日志如下:
[sat jun 20 03:12:52 2009] [notice] apache/2.2.11 (win32) php/5.2.9-2 configured -- resuming normal operations
[sat jun 20 03:12:52 2009] [notice] server built: dec 10 2008 00:10:06
[sat jun 20 03:12:52 2009] [notice] parent: created child process 2676
[sat jun 20 03:12:53 2009] [notice] child 2676: child process is running
[sat jun 20 03:12:53 2009] [crit] (os 10022)提供了一个无效的参数。 : child 2676: setup_inherited_listeners(), wsasocket failed to open the inherited socket.
[sat jun 20 03:12:53 2009] [crit] parent: child process exited with status 3 -- aborting.
(os 10022)提供了一个无效的参数。
--------------------------------------------------------------------------------
这个错误解决方法如下:
1.网上邻居->本地连接->属性->internet协议(tcp/ip)->属性->高级->wins标签->去掉启用lmhosts查询前的勾.(这个我自己电脑xp系统上并没有...)
2.控制面版->windows防火墙->高级标签->本地连接设置->服务的标签里勾选安全web服务器(https)即可.(我尝试了这个但无效果...)
(这上下两项完成后仍然有问题,选中:启用 tci/ip 上的 netbois.

我自己用以上两种方法未解决问题,尝试下面的第三种,成功!
3.修复winsock,在运行里输入:netsh winsock reset