gpt4 book ai didi

powershell - 启动服务: Failed to start service 'Microsoft Service Fabric Host Service (FabricHostSvc)'

转载 作者:行者123 更新时间:2023-12-02 03:54:54 33 4
gpt4 key购买 nike

我想开始使用 Azure Service Fabric 技术。

我按照this document工作并安装最新的SDK。安装后,我打开 PowerShell(“以管理员身份运行”)命令行窗口并写入这些行:

# Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser
# cd "$env:ProgramW6432\Microsoft SDKs\Service Fabric\ClusterSetup"
# .\DevClusterSetup.ps1

作为答案,收到此错误:

Cleaning existing cluster ...

NOTE: If this powershell command window exits, please re-run the script in a new powershell command window.


Stopping service FabricHostSvc. This may take a few minutes...
Removing cluster configuration
Remove node configuration succeeded
Cleaning existing certificates
Stopping all logman sessions
Cleaning log and data folder, the powershell window may close automatically.
ClusterPath not provided, will use C:\SfDevCluster
FabricDataRoot not provided, will use C:\SfDevCluster\Data
FabricLogRoot not provided, will use C:\SfDevCluster\Log


Directory: C:\


Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 4/11/2015 12:47 PM SfDevCluster


Directory: C:\SfDevCluster


Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 4/11/2015 12:47 PM Manifests
True
Create node configuration succeeded
Starting service FabricHostSvc. This may take a few minutes...
Start-Service : Failed to start service 'Microsoft Service Fabric Host Service (FabricHostSvc)'.
At C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\DevClusterSetup.ps1:167 char:1
+ Start-Service FabricHostSvc -WarningAction SilentlyContinue
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
ServiceCommandException
+ FullyQualifiedErrorId : StartServiceFailed,Microsoft.PowerShell.Commands.StartServiceCommand

WARNING: Could not start FabricHostSvc

底线是“无法启动服务”。等待 3 分钟后,此输出将打印到屏幕上。

我已经尝试过的事情:

  1. 重新启动计算机几次(我在某处读到这可以解决问题)。
  2. 关闭我的防病毒\防火墙软件。

附上 PowerShell 命令行的屏幕截图。 enter image description here我正在使用:

  • Visual Studio 2015 企业版
  • Windows 8.1
  • Azure Service Fabric SDK v1.0.328

最佳答案

今天早上我也遇到了这个问题。我不必重新安装 Windows。

我也在事件日志中发现了有关损坏的性能计数器的事件。我不确定它是否相关,但我以管理员身份从 cmd windows 运行此命令来重建性能计数器并清除错误:

lodctr/r

然后,我转到“程序和功能”并卸载了所有提到 Service Fabric 的内容。

然后,我重新安装了 Service Fabric SDK,并按照 Azure Service Fabric environment setup page here 上的说明进行操作。我的集群开始正常工作。

关于powershell - 启动服务: Failed to start service 'Microsoft Service Fabric Host Service (FabricHostSvc)' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33520293/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com