我想开始使用 Azure Service Fabric 技术。
我正在根据本文档工作并安装最新的 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 分钟后,此输出将打印到屏幕上。
我已经尝试过的事情:
- 重新启动计算机几次(我在某处读到这可以解决问题)。
- 关闭我的防病毒\防火墙软件。
- Visual Studio 2015 企业版
- 视窗 8.1
- Azure Service Fabric SDK v1.0.328