Home  >  Article  >  Backend Development  >  完美解决:Apache启动问题—(OS 10022)提供了一个无效的参数_php技巧

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

WBOY
WBOYOriginal
2016-05-17 09:02:41870browse

今天启动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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn