完美解決:Apache啟動問題—(OS 10022)提供了一個無效的參數_php技巧

來源:互聯網
上載者:User
今天啟動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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.