﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>语源科技BlogJava-yinzhao0509</title><link>http://www.blogjava.net/zhaoyongwang/</link><description /><language>zh-cn</language><lastBuildDate>Thu, 07 May 2026 03:25:52 GMT</lastBuildDate><pubDate>Thu, 07 May 2026 03:25:52 GMT</pubDate><ttl>60</ttl><item><title>【转载】彻底解决：Apache启动问题—(OS 10022)提供了一个无效的参数。</title><link>http://www.blogjava.net/zhaoyongwang/archive/2010/08/05/328080.html</link><dc:creator>yinzhao0509</dc:creator><author>yinzhao0509</author><pubDate>Thu, 05 Aug 2010 14:39:00 GMT</pubDate><guid>http://www.blogjava.net/zhaoyongwang/archive/2010/08/05/328080.html</guid><wfw:comment>http://www.blogjava.net/zhaoyongwang/comments/328080.html</wfw:comment><comments>http://www.blogjava.net/zhaoyongwang/archive/2010/08/05/328080.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zhaoyongwang/comments/commentRss/328080.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhaoyongwang/services/trackbacks/328080.html</trackback:ping><description><![CDATA[<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; ">今天本地构建PHP环境，装Apache，无论如何也启动不了。</p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; ">在控制面板的管理工具里面，启动服务也总失败。</p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; ">提示：</p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; ">---------------------------<br style="line-height: normal; " />
服务<br style="line-height: normal; " />
---------------------------<br style="line-height: normal; " />
本地计算机 上的 apache2 服务启动后又停止了。一些服务自动停止，如果它们没有什么可做的，例如&#8220;性能日志和警报&#8221;服务。<br style="line-height: normal; " />
---------------------------<br style="line-height: normal; " />
确定&nbsp;&nbsp;&nbsp;<br style="line-height: normal; " />
---------------------------<br style="line-height: normal; " />
在网上搜索了半天，也找了N多资料，问题依旧啊，后来在一个朋友的BLOG看到一个补充的办法，解决了。</p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; ">下面列出解决办法：</p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; ">遇到系统升级到Winxp[sp2]可能会遇到Apache无法正常启动：<br style="line-height: normal; " />
error.log日志类似这样描述：</p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; ">[crit] (OS 10022)提供了一个无效的参数。</p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; ">解决办法:<br style="line-height: normal; " />
1.网上邻居-&gt;本地连接-&gt;属性-&gt;internet协议(TCP/IP)-&gt;属性-&gt;高级-&gt;wins标签-&gt;去掉启用LMhosts查询前的勾.<br style="line-height: normal; " />
<br style="line-height: normal; " />
2.控制面版-&gt;windows防火墙-&gt;高级标签-&gt;本地连接设置-&gt;服务的标签里勾选安全Web服务器(HTTPS)即可.</p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; ">(这上下两项完成后仍然有问题，选中：启用 TCI/IP 上的 NetBOIS.</p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#0000ff" style="line-height: normal; ">这是网上的办法，我试过后问题依旧，继续找。下面的操作就可以了。</font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#ff0000" style="line-height: normal; "><strong style="line-height: normal; ">3.在运行里输入：netsh winsock reset</strong></font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000" style="line-height: normal; ">原因：有人提到是winsock的问题，用hijackthis.exe 搜索了下，发现了：</font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><a href="http://www.hacder.cn/wp-content/uploads/2008/07/11.jpg" style="color: #666666; font-size: 12px; text-decoration: none; font-family: georgia; line-height: 20px; "><font size="+0" style="line-height: normal; "><img class="alignnone size-medium wp-image-492" title="11" height="45" src="http://www.hacder.cn/wp-content/uploads/2008/07/11-300x41.jpg" width="300" style="line-height: normal; " alt="" /></font></a></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000" style="line-height: normal; ">?</font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000" style="line-height: normal; ">于是找了WinsockxpFix.exe尝试修复winsock，<br style="line-height: normal; " />
重启后? apache就可以启动了</font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000" style="line-height: normal; ">后来发现，机子不重启也可以的，只要修复一下网络连接就可以了</font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000" style="line-height: normal; ">其实Windows本身就带有修复工具的 汗一个</font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000" style="line-height: normal; ">只要直接在运行里输入：</font></p>
<p class="hl-firstline" style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000" style="line-height: normal; ">netsh winsock reset</font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000" style="line-height: normal; ">连提示重启都不用， 很好很强大!</font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000">-------------------------------------------------------------------------------------------------------------------------------</font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000">此问题会直接导致Apache2.2 Server和Visual SVN Server的服务无法启动，直接使用netsh&nbsp;</font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000">winsock reset进行处理后，二者都可以启动成功。此处保留上面诸多解决方案，只是为了以后</font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000">以备查询。</font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000"><br />
</font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000">--------------------------------------------------------------------------------------------------------------------------------</font></p>
<p style="line-height: normal; color: #666666; font-family: georgia; font-size: 12px; "><font color="#000000">原文地址：</font><span style="color: #000000; font-family: Simsun; font-size: medium; "><a href="http://hi.baidu.com/fenghensoft/blog/item/da4f1acbbc0f8ffb53664f14.html">http://hi.baidu.com/fenghensoft/blog/item/da4f1acbbc0f8ffb53664f14.html</a></span></p>
<img src ="http://www.blogjava.net/zhaoyongwang/aggbug/328080.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhaoyongwang/" target="_blank">yinzhao0509</a> 2010-08-05 22:39 <a href="http://www.blogjava.net/zhaoyongwang/archive/2010/08/05/328080.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>