KieWorkbench+KieServer+Wildfly安装部署

下载

1. 下载business-central

drools官网下载

curl https://download.jboss.org/drools/release/7.59.0.Final/business-central-7.59.0.Final-wildfly23.war --output ./business-central

2.wildfly下载

wildfly官方下载,24.0.1.Final

部署

cd /Users/woody/develop/wildfly-24.0.1.Final/standalone/deployments
unzip ~/develop/business-central.war -d ./business-central.war
touch business-central.war.dodeploy
cd /home/wildfly/wildfly-14.0.1.Final/standalone/configuration
vim application-roles.properties
#增加如下配置
admin=admin
analyst=analyst
developer=developer
manager=manager
user=user

vim application-users.properties
#增加如下配置
#admin=admin
admin=207b6e0cc556d7084b5e2db7d822555c
#analyst=analyst
analyst=047ca331957b5ce5021e8e01d3322a13
#developer=developer
developer=97df44a197a58de9674af3cd139df47e
#manager=manager
manager=e5148a68341fbc5afbe08fb4ab6da2c5
#user=user
user=c5568adea472163dfc00c19c6348a665

#最好先备份
vim standalone-full.xml
#将management下ApplicationRealm配置修改为如下所示
 <security-realm name="ApplicationRealm">
     <authentication>
         <local default-user="$local" allowed-users="*" skip-group-loading="true"/>
         <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
     </authentication>
     <authorization>
         <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
     </authorization>
 </security-realm>

添加管理用户

/usr/local/wildfly8/bin    执行  ./add-user.sh
 
./add-user.sh    Enter
What type of user do you wish to add? 
 a) Management User (mgmt-users.properties) 
 b) Application User (application-users.properties)
(a): a     Enter
Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username :admin      Enter  这个可自定义  但建议写admin
 
Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.
 - The password should not be one of the following restricted values {root, admin, administrator}
 - The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
 - The password should be different from the username
Password :     这里输入密码   Enter
 
JBAS015267: Password must have at least 1 non-alphanumeric symbol.
Are you sure you want to use the password entered yes/no?   yes   Enter
 
Re-enter Password :   这里是重复密码  Enter
 
What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[  ]: admin    设置用户组
 
About to add user 'admin' for realm 'ManagementRealm'
Is this correct yes/no?  yes   Enter
 
Added user 'admin' to file '/usr/local/wildfly8/standalone/configuration/mgmt-users.properties'
Added user 'admin' to file '/usr/local/wildfly8/domain/configuration/mgmt-users.properties'
Added user 'admin' with groups admin to file '/usr/local/wildfly8/standalone/configuration/mgmt-groups.properties'
Added user 'admin' with groups admin to file '/usr/local/wildfly8/domain/configuration/mgmt-groups.properties'
Is this new user going to be used for one AS process to connect to another AS process? 
e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.
yes/no? yes  Enter

启动

sh standalone.sh &

停止

jboss-cli.sh --connect --command=:shutdown

访问

管理页面

http://localhost:9990/console/index.html

应用页面

下载kie-server

kie-server

部署kie-server

在这里插入图片描述
在这里插入图片描述

部署错误处理

  1. 内存溢出,修改JAVA_OPTS
 vi standalone.conf
 sh standalone.sh -c standalone-full.xml -Djboss.server.config.dir=/Users/woody/develop/wildfly-24.0.1.Final/standalone/configuration/ &
  1. 用户添加
./add-user.sh -a -u kieserver -p password1! -g admin,kie-server

参考

http://www.mastertheboss.com/bpm/jbpm6/running-rules-on-wildfly-with-kie-server/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值