如何安裝/解除安裝workflow manager 1.0
阿新 • • 發佈:2021-07-13
安裝
1. 配置檔案:
<Workflow> <!--http://msdn.microsoft.com/en-us/library/windowsazure/jj193269(v=azure.10).aspx--> <WFFarmDBConnectionString value="Data Source=HPITSPM1.youda.mit.com\sh;User ID=sa;Password=1Qaz2wsx3edc" /> <CertificateAutoGenerationKey value="!Qaz2wsx" /> <RunAsName value="youda\svc_SPFarm_SH" /> <RunAsPassword value="1Qaz2wsx3edc" /> <AdminGroup value="Administrators" /> <WorkflowHostUri value="http://MHSMOYM3.youda.mit.com:12291" /> </Workflow>
2. powershell 指令碼:
$0 = $myInvocation.MyCommand.Definition $curDir = [System.IO.Path]::GetDirectoryName($0) $parDir = Get-Item $curDir | Split-Path -Parent $graDir = Get-Item $parDir | Split-Path -Parent # 1 - install; 2 config $type = Read-Host "Please input 1 to install or 2 to config" if($type -eq "1") { $cmd = "$parDir\workflow\bin\WebpiCmd.exe" $xml = "$parDir\workflow\feeds\latest\webproductlist.xml" Write-Host $cmd Write-Host $xml Start-Process "$cmd" -ArgumentList "/Install /Products:WorkflowManager /XML:$xml" Write-Host "Install workflow manager successfully" } elseif($type -eq "2") { [xml]$global:wfxml = (gc "$graDir\common\config\config-Workflow.xml") -replace ("localhost", $env:COMPUTERNAME) #http://msdn.microsoft.com/en-us/library/windowsazure/jj193269(v=azure.10).aspx $dbConn = $global:wfxml.Workflow.WFFarmDBConnectionString.Value $runasName = $global:wfxml.Workflow.RunAsName.Value $adminGroup = $global:wfxml.Workflow.AdminGroup.Value $key = $global:wfxml.Workflow.CertificateAutoGenerationKey.Value $RunAsPassword = $global:wfxml.Workflow.RunAsPassword.Value $secPassword = ConvertTo-SecureString -AsPlainText -Force -String $RunAsPassword $secKey = ConvertTo-SecureString -AsPlainText -Force -String $key try { # Create new SB Farm New-SBFarm -SBFarmDBConnectionString $dbConn -InternalPortRangeStart 9000 -HttpsPort 9355 -TcpPort 9354 -MessageBrokerPort 9356 -CertificateAutoGenerationKey $secKey #-RunAsName $runasName -AdminGroup $adminGroup # Create new WF Farm New-WFFarm -WFFarmDBConnectionString $dbConn -HttpsPort 12290 -HttpPort 12291 -CertificateAutoGenerationKey $secKey #-RunAsName $runasName -AdminGroup $adminGroup # Add SB Host Add-SBHost -SBFarmDBConnectionString $dbConn -RunAsPassword $secPassword -EnableFirewallRules $true -CertificateAutoGenerationKey $secKey # Create new SB Namespace New-SBNamespace -Name 'WorkflowDefaultNamespace' -AddressingScheme 'Path' -ManageUsers $runasName # Get SB Client Configuration $SBClientConfiguration = Get-sbclientConfiguration -Namespaces 'WorkflowDefaultNamespace'; # Add WF Host #Copy the Service Bus Client configuration from Service Bus PowerShell console and store it in a local variable $SBClientConfiguration Add-WFHost -WFFarmDBConnectionString $dbConn -RunAsPassword $secPassword -SBClientConfiguration $SBClientConfiguration -EnableHttpPort -CertificateAutoGenerationKey $secKey -EnableFirewallRules $true Write-Host "Create workflow manager farm successfully" } catch { write-host $_.exception.message } }
解除安裝
1. 執行Workflow Manager Configuration Wizard,點選Leave Farm
2. 解除安裝下面軟體:
- Workflow Manager 1.0
- Workflow Manager 1.0 Client
- Service Bus 1.0
- Windows Fabric
3. 刪除下面的資料庫:
- WfManagementDB
- SbGatewayDatabase
- SBContainer01
- WFInstanceManagementDB
- WFResourceManagementDB
- SBManagementDB
如果您覺得閱讀本文對您有幫助,請點一下“推薦”按鈕,您的“推薦”將是我最大的寫作動力!歡迎各位轉載,但必須在文章頁面明顯位置給出作者和原文連線,否則保留追究法律責任的權利。
線上教學、視訊會議(含 文字、語音、視訊聊天、電子白板) | |