更改当前使用的配置文件
Changing the configuration file in current use
Service fabric 允许您运行具有各种配置的集群:
如何在本地主机上的不同配置文件下将集群切换到 运行?
嗯,我会说你必须先删除现有的集群。例如,如果我们考虑 SF Local Cluster Manager 中可用的 'Switch cluster mode' 按钮,那么这里是根据文档它的作用 -
When you change the cluster mode, the current cluster is removed from
your system and a new cluster is created. The data stored in the
cluster is deleted when you change cluster mode.
所以这是适合您的路径 -
- 运行 RemoveServiceFabricCluster。ps1 从配置中的每台机器(您将作为参数传递给此命令的机器)中删除 Service Fabric
- 运行 CleanFabric.ps1 从当前机器中删除 Service Fabric
- 运行 CreateServiceFabricCluster.ps1 这次传递一个新的配置文件
Service fabric 允许您运行具有各种配置的集群:
如何在本地主机上的不同配置文件下将集群切换到 运行?
嗯,我会说你必须先删除现有的集群。例如,如果我们考虑 SF Local Cluster Manager 中可用的 'Switch cluster mode' 按钮,那么这里是根据文档它的作用 -
When you change the cluster mode, the current cluster is removed from your system and a new cluster is created. The data stored in the cluster is deleted when you change cluster mode.
所以这是适合您的路径 -
- 运行 RemoveServiceFabricCluster。ps1 从配置中的每台机器(您将作为参数传递给此命令的机器)中删除 Service Fabric
- 运行 CleanFabric.ps1 从当前机器中删除 Service Fabric
- 运行 CreateServiceFabricCluster.ps1 这次传递一个新的配置文件