如何关闭 Azure Service Fabric 的本地实例?

How to shut down a local instance of Azure Service Fabric?

上周我启动了 azure service fabric 的本地实例,并能够在本地机器上使用节点和服务。 Visual studio 设置了一个集群,我认为它会在关机时关闭。今天我遇到了 FabicGateway.exe 和 Fabric.exe 在后台 运行ning 在我的计算机上的问题。当我从本地主机地址的 Service Fabric Explorer 中删除应用程序时,这些仍然存在。

如何关闭服务结构,使其不会 运行 在我的计算机启动时出现在后台?任何想法或帮助将不胜感激。

您使用的是最新版本的SDK吗?我相信他们在最新版本的 SDK(2016 年 5 月 6 日)版本 2.0.217 中修复了这个问题 .他们在发行说明中指出:

The FabricHost service was incorrectly marked as autostart for local development clusters which would cause the cluster to be restarted on reboot, and resetting or re-creating the local development cluster would reset FabricHost to autostart mode. This would lead to local resource consumption and was frequently undesired for the local cluster environment. Changes were made to support non-autostart for local development environments and not to override user choice here.

否则您可以使用管理器关闭集群。管理器位于:C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager