安装
1. 配置文件:
<Workflow>
<!--http://msdn.microsoft.com/en-us/library/windowsazure/jj193269(v=azure.10).aspx-->
<WFFarmDBConnectionString value="Data Source=HPITSPM1.youda.mit.comsh;User ID=sa;Password=1Qaz2wsx3edc" />
<CertificateAutoGenerationKey value="!Qaz2wsx" />
<RunAsName value="youdasvc_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 = "$parDirworkflowinWebpiCmd.exe"
$xml = "$parDirworkflowfeedslatestwebproductlist.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 "$graDircommonconfigconfig-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
如果您觉得阅读本文对您有帮助,请点一下“推荐”按钮,您的“推荐”将是我最大的写作动力!欢迎各位转载,但必须在文章页面明显位置给出作者和原文连接,否则保留追究法律责任的权利。
Notification发送通知
CSDN管理员看过来
linux 中安装JDK
断开网线黑客也能盗走你的数据
1.6.2 多表插入
【笨木头Lua专栏】基础补充07:协同程序初探
猫猫学iOS 之微博项目实战(2)微博主框架-自己定义导航控制器NavigationController
mysql innodb插入意向锁
MongoDB实战指南(七):MongoDB复制集之复制集工作机制
- 最新文章
-
chrome备份网站
kibana dev tools快捷键
win10中显示wpcap.dll丢失的处理方式
ElasticSearch基本概念
ElasticSearch集群本机搭建
ElasticSearch生产模式开发模式的区分
Django入门
在windows中增加linux命令
nexus批量更新jar包
阿里云部署Docker(4)----容器的使用
- 热门文章
-
[华为机试真题][2015]65.和尚挑水
stanford-parser for C#
【知识拓展】——云盘是怎么实现“秒传”的 !?
设计模式_单例模式
NHibernate之旅(13):初探马上载入机制
"Insufficient RAM for Flash Algorithms"出错原因及解决方式
BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第14章节--使用Office Services开发应用程序 Excel Services中新功能
Triangle LeetCode |My solution
javascript跳跃式前进(3)
leetCode 94.Binary Tree Inorder Traversal(二叉树中序遍历) 解题思路和方法
Copyright © 2011-2022 走看看
