完美解决:Apache启动问题—(OS 10022)提供了一个无效的参数
今天启动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

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft