<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://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://maytide.net/read.php/2148.htm</link>
<title><![CDATA[Microsoft Connected Cache for Enterprise - 卸载和重装]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[Microsoft Cloud]]></category>
<pubDate>Sun, 10 Aug 2025 12:48:51 +0000</pubDate> 
<guid>https://maytide.net/read.php/2148.htm</guid> 
<description>
<![CDATA[ 
	<p><img alt="MCC-logo" src="http://goxia.maytide.net/ftpup/2018/4f166dbc0b02_A180/MCC-logo_thumb.png"></p><p><strong><font color="#fd3f0d" size="4">Microsoft Connected Cache for Enterprise - 卸载和重装</font></strong></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 前面 <a href="https://goxia.maytide.net" target="_blank">gOxiA</a> 与大家分享了“<a href="https://goxia.maytide.net/read.php/2145.htm" target="_blank">Microsoft Connected Cache - 概述</a>”、“<a href="https://goxia.maytide.net/read.php/2146.htm" target="_blank">适用于企业和教育的 Microsoft Connected Cache</a>”、“<a href="https://goxia.maytide.net/read.php/2147.htm" target="_blank">Microsoft Connected Cache for Enterprise - 实践</a>”，相信已经上手的朋友会有一些收获。我们继续前行，尝试卸载和重装 Microsoft Connected Cache for Enterprise，过程其实非常简单，只是我们可能会遇到一些小小的“意外”，该如何处理解决以及完成目标，是 gOxiA 今天要分享的。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 例如当我们访问 Cache Nodes 管理界面时，应该会留意到系统给出的提示，要求我们将那些需要迁移的缓存节点使用新的缓存节点部署包重新部署安装，留意下图标注的位置已决定是否需要重新部署。</p><p><a href="http://goxia.maytide.net/ftpup/2018/Microsoft-Connected-Cache-for-Enterprise_11775/0-uninstallmcc.png"><img width="630" height="113" title="0-uninstallmcc" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="0-uninstallmcc" src="http://goxia.maytide.net/ftpup/2018/Microsoft-Connected-Cache-for-Enterprise_11775/0-uninstallmcc_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 本例中是一台基于 Ubuntu Server 的缓存节点主机，接下来 gOxiA 将会先卸载现有缓存节点版本，然后安装最新的版本。首先执行 uninstallmcc.sh 执行卸载脚本，如果未 sudo 需进行管理员权限认证，如下图所示。</p><p><a href="http://goxia.maytide.net/ftpup/2018/Microsoft-Connected-Cache-for-Enterprise_11775/1-uninstallmcc.png"><img width="630" height="157" title="1-uninstallmcc" style="margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="1-uninstallmcc" src="http://goxia.maytide.net/ftpup/2018/Microsoft-Connected-Cache-for-Enterprise_11775/1-uninstallmcc_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 卸载过程非常快，最后会给出结果，如下图提示会有一个报错：“Failed to remove cron job for host update”，提示未能移除定时任务。</p><p><a href="http://goxia.maytide.net/ftpup/2018/Microsoft-Connected-Cache-for-Enterprise_11775/2-uninstalmcc-failed.png"><img width="630" height="472" title="2-uninstalmcc-failed" style="margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="2-uninstalmcc-failed" src="http://goxia.maytide.net/ftpup/2018/Microsoft-Connected-Cache-for-Enterprise_11775/2-uninstalmcc-failed_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 如果要彻底清除，建议安装 cron，为此执行如下指令：</p><p>sudo apt update</p><p>sudo apt install cron</p><p>./uninstallmcc.sh</p><p><a href="http://goxia.maytide.net/ftpup/2018/Microsoft-Connected-Cache-for-Enterprise_11775/3-uninstallmcc-finish.png"><img width="630" height="472" title="3-uninstallmcc-finish" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="3-uninstallmcc-finish" src="http://goxia.maytide.net/ftpup/2018/Microsoft-Connected-Cache-for-Enterprise_11775/3-uninstallmcc-finish_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 再次卸载就不会再有警告信息，最后我们下载最新的缓存节点部署包再次执行安装。最新的缓存节点部署包可以从该网址下载：<a title="https://aka.ms/mcc-ent-linux-deploy-scripts" href="https://aka.ms/mcc-ent-linux-deploy-scripts">https://aka.ms/mcc-ent-linux-deploy-scripts</a>，参考前面的日志进行安装即可。如果在安装时遇到如下图报错：“<strong><em><font color="#ff0000">The registration key is no longer valid, please visit the Azure portal for a new command line</font></em></strong>”，请重新生成部署相关信息。</p><p><a href="http://goxia.maytide.net/ftpup/2018/Microsoft-Connected-Cache-for-Enterprise_11775/4-reinstallmcc-error.png"><img width="630" height="302" title="4-reinstallmcc-error" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="4-reinstallmcc-error" src="http://goxia.maytide.net/ftpup/2018/Microsoft-Connected-Cache-for-Enterprise_11775/4-reinstallmcc-error_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 另外需要注意，如果是重新部署 Linux 缓存节点将其迁移到 GA 版本，用户必须执行如下操作，否则内容请求将会失败。</p><p>chmod 777 -R /cachenode</p><p>sudo iotedge restart MCC</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 稍等几分钟我们可以使用 sudo iotedge list 进行检查。</p><p><a href="http://goxia.maytide.net/ftpup/2018/Microsoft-Connected-Cache-for-Enterprise_11775/iotedge_list.png"><img width="630" height="98" title="iotedge_list" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="iotedge_list" src="http://goxia.maytide.net/ftpup/2018/Microsoft-Connected-Cache-for-Enterprise_11775/iotedge_list_thumb.png" border="0"></a></p><p>推荐官方参考：</p><p><a href="https://learn.microsoft.com/en-us/windows/deployment/do/mcc-ent-monitoring#ga-migration-status/?WT.mc_id=WDIT-MVP-4000544" target="_blank">Monitor cache node usage - GA migration status &#124; Microsoft Learn</a></p>
]]>
</description>
</item>
</channel>
</rss>