<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://sufan.maytide.net/index.php</link> 
<description><![CDATA[gOxiA,苏繁,sufan,Microsoft MVP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[gOxiA=苏繁=SuFan Blog]]></copyright>
<item>
<link>https://sufan.maytide.net/read.php/1596.htm</link>
<title><![CDATA[[SBS] 解决因安装更新补丁引发的 MSExchangeAB 与 WSUS 端口冲突故障]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[Exchange Server]]></category>
<pubDate>Wed, 11 Jul 2012 09:31:16 +0000</pubDate> 
<guid>https://sufan.maytide.net/read.php/1596.htm</guid> 
<description>
<![CDATA[ 
	<p><a href="http://goxia.maytide.net/ftpupfiles/SBS-Windows-Small-Business-Server-2011-S_13B83/SBS2011Standard.png"><img title="SBS2011Standard" border="0" alt="SBS2011Standard" src="http://goxia.maytide.net/ftpupfiles/SBS-Windows-Small-Business-Server-2011-S_13B83/SBS2011Standard_thumb.png" width="240" height="59"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;前几日 <a href="http://goxia.maytide.net/" target="_blank">gOxiA</a> 将公司的 Windows Small Business Server 2011 Standard（SBS2011Std） 系统进行了升级更新，为其安装了 Exhange Server 2010 SP2 和后续的 Update Rollup 2，没想到却出现了问题。在 Update Rollup 2 安装接近结束时，更新进程停止了，日志中一直报 GPO 相关的错误，等待了近半个小时的时间，没有任何进展，无奈强制重启了 SBS2011Std 服务器，重启完毕后发现与 Exhcange Server 相关的服务都被禁用了，于是再次启动 Windows Update，并重新更新 Update Rollup 2 补丁，这次算是顺利的完成了更新，待重启服务器后发现 Exchange Server 相关服务还是禁用状态，随即手工将其他更改为自动，并启动服务。</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exchange Server 故障惊魂才过，今天登录 SBS2011Std 服务器才在 Dashboard 中发现“网络基础摘要”中“更新”状态没有查询结果。 启动 Windows Server Update Services 控制台提示错误，检查了 IIS 才发现“WSUS 管理”站点时停止状态，当手动去启动它时提示错误“<font style="background-color: #ffff00">另一个程序正在使用此文件，进程无法访问。（异常来自 HRESULT : 0x80070020）</font>”，如下图所示：</p> <p><a href="http://goxia.maytide.net/ftpupfiles/SBS--Exchange-Server-2010_EB5C/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://goxia.maytide.net/ftpupfiles/SBS--Exchange-Server-2010_EB5C/image_thumb.png" width="634" height="358"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;从错误信息判断，该故障是典型的端口被其他程序占用所导致的问题，为了搞清是哪个程序占用了端口，我们可以用 netstat 进行查找，为此执行如下命令行：</p> <p><div class="code">netstat –aon &#124; find “:8530”</div></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在查询结果中我们能得到如下图类似的结果，确认每条信息结尾的数字就是该程序的 PID，然后在任务管理器中通过 PID 即可定位程序。</p> <p><a href="http://goxia.maytide.net/ftpupfiles/SBS--Exchange-Server-2010_EB5C/image_3.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://goxia.maytide.net/ftpupfiles/SBS--Exchange-Server-2010_EB5C/image_thumb_3.png" width="644" height="364"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;从截图中我们能看到占用 WSUS 8530 端口的进程是“MSExchangeAB”即“Microsoft Exchange 通讯簿”服务，看来应该是之前安装了 Exchange Server 的更新导致 MSExchangeAB 端口变更，并占用了 WSUS 的 8530 端口，参考了“<a href="http://technet.microsoft.com/zh-CN/library/ff622319" target="_blank">安装指南模板 - 客户端访问服务器</a>”，尝试手工为 MSExhangeAB 指定静态端口，为此执行如下步骤：</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;启动“regedit”注册表编辑器，定位到“HKEY_LOCAL_MACHINE＼SYSTEM＼CurrentControlSet＼services＼MSExchangeAB”，创建一个新项并命名为“Parameters”，再其下创建一个名为“RpcTcpPort”的字符串，并将值设置为“59596”，该值就是 MSExchangeAB 的端口，当然也可以指定为其他不受冲突的端口。修改完毕后重启 MSExchangeAB 服务。</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;重新在 IIS 里启动“WSUS 管理”站点，故障消除！在恢复正常后，我们可以把之前设置的 MSExchangeAB 静态端口删除。</p><br/>Tags - <a href="https://sufan.maytide.net/go.php/tags/microsoft/" rel="tag">microsoft</a> , <a href="https://sufan.maytide.net/go.php/tags/windows/" rel="tag">windows</a> , <a href="https://sufan.maytide.net/go.php/tags/small/" rel="tag">small</a> , <a href="https://sufan.maytide.net/go.php/tags/business/" rel="tag">business</a> , <a href="https://sufan.maytide.net/go.php/tags/server/" rel="tag">server</a> , <a href="https://sufan.maytide.net/go.php/tags/sbs/" rel="tag">sbs</a> , <a href="https://sufan.maytide.net/go.php/tags/2011/" rel="tag">2011</a> , <a href="https://sufan.maytide.net/go.php/tags/standard/" rel="tag">standard</a> , <a href="https://sufan.maytide.net/go.php/tags/exchange/" rel="tag">exchange</a> , <a href="https://sufan.maytide.net/go.php/tags/2010/" rel="tag">2010</a> , <a href="https://sufan.maytide.net/go.php/tags/msexchangeab/" rel="tag">msexchangeab</a> , <a href="https://sufan.maytide.net/go.php/tags/rpctcpport/" rel="tag">rpctcpport</a> , <a href="https://sufan.maytide.net/go.php/tags/wsus/" rel="tag">wsus</a>
]]>
</description>
</item>
</channel>
</rss>