mac m1芯片本地安装最新版本workbench kie步骤,确保可行

WILDFLY下部署DROOLS工作台

1 启动WILDFLY服务:

(A) 完整启动

<JBOSS_HOME>/bin/standalone.sh  (Unix / Linux) 
<JBOSS_HOME>\bin\standalone.bat (Windows)
  • 2

启动脚本位于根目录/bin目录中。Windows为standalone.bat,Linux为standalone.sh。

访问服务器的url为:127.0.0.1:8080,访问管理后台的url为:http://127.0.0.1:9990/。

(B) 管理后台启动

此外,Wildfly还可以启动一个管理后台来对服务进行管理。

 <JBOSS_HOME>/bin/domain.sh  (Unix / Linux)

 <JBOSS_HOME>\bin\domain.bat (Windows)
  • 1
  • 2
  • 3

启动脚本位于根目录/bin目录中。Windows为domain.bat,Linux为domain.sh。

© 配置运行内存

为避免部署项目体积较大而报错–java.lang.OutOfMemoryError内存错误。请提前修改内存配置

在wildfly\bin下standalone.conf(windows平台请修改standalone.conf.bat)文件中修改对应部分如下内容:

   JAVA_OPTS="-Xms256m -Xmx4096m -XX:MetaspaceSize=256M -XX:MaxMetaspaceSize=1024m -Djava.net.preferIPv4Stack=true"
   JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"

(D) 配置外网访问

Wildfly默认不支持外网访问,如果需要设置外网访问,需要修改<JBOSS_HOME>\standalone\configuration下的standalone-full.xml文件,

将managent和public对应的value绑定的地址由127.0.0.1修改为0.0.0.0。如下图所示
在这里插入图片描述

2 停止WILDFLY服务

停止服务,可以通过控制台输入Ctrl+c命令来操作。

如果服务在后台运行,可执行一下命令进行停止。

<JBOSS_HOME>/bin/jboss-cli.sh --connect --command=:shutdown  (Unix / Linux)
<JBOSS_HOME>\bin\jboss-cli.bat --connect --command=:shutdown (Windows)

3 WILDFLY下部署DROOLS工作台

(A) CLI手动部署

下载Business Central Workbench地址:https://download.jboss.org/drools/release/7.73.0.Final/business-central-7.73.0.Final-wildfly23.war

下载KIE Execution Server地址:https://download.jboss.org/drools/release/7.73.0.Final/kie-server-distribution-7.73.0.Final.zip

注意:Business Central Workbench和KIE Execution Server的版本要匹配。

将kie-server-distribution-7.73.0.Final.zip中的kie-server-7.28.0.Final-ee7.war取出然后改名为kie-server.war

将business-central-7.73.0.Final-wildfly23.war改名为kie-wb.war

然后将kie-server.war、kie-wb.war复制到wildfly的standalone/deployments目录下

① 添加用户

首先更新admin账户信息

<JBOSS_HOME>/bin/add-user.sh  (Unix / Linux) 
<JBOSS_HOME>\bin\add-user.bat (Windows)
  • 2

D:\Program Files\wildfly\bin>add-user.bat

What type of user do you wish to add?
 a) Management User (mgmt-users.properties)
 b) Application User (application-users.properties)
(a): a

Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : admin
User 'admin' already exists and is enabled, would you like to...
 a) Update the existing user password and roles
 b) Disable the existing user
 c) Type a new username
(a): a
Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.
 - The password should be different from the username
 - 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)
Password :
WFLYDM0098: The password should be different from the username
Are you sure you want to use the password entered yes/no? yes
Re-enter Password :
What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[]: MangagementRealm
Updated user 'admin' to file 'D:\Program Files\wildfly\standalone\configuration\mgmt-users.properties'
Updated user 'admin' to file 'D:\Program Files\wildfly\domain\configuration\mgmt-users.properties'
Updated user 'admin' with groups MangagementRealm to file 'D:\Program Files\wildfly\standalone\configuration\mgmt-groups.properties'
Updated user 'admin' with groups MangagementRealm to file 'D:\Program Files\wildfly\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
To represent the user add the following to the server-identities definition <secret value="YWRtaW4=" />
请按任意键继续.

 

如下图所示:
在这里插入图片描述

然后为Kie-Server添加一个具有“kie-server”角色的用户,为Business Central添加一个具有“admin”和“kie-server”角色的用户:

./add-user.sh -a -u kieserver -p kieserver1! -g kie-server
./add-user.sh -a -u workbench -p workbench! -g admin,kie-server

 

② 启动服务

启动WildFly并传递以下参数,这些参数指定Kie Server使用范围和所选的ID:

 ./standalone.sh --server-config=standalone-full.xml -Dorg.kie.demo=false -Dorg.kie.server.id=wildfly-kieserver -Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server -Dorg.kie.server.controller=http://localhost:8080/kie-wb/rest/controller

 启动命令也可以用后边的,原理一样

     sh /Users/admin/Documents/newsoft/wildfly-23.0.2.Final/bin/standalone.sh --server-config=standalone-full.xml -Dorg.kie.demo=false -Dorg.kie.server.id=wildfly-kieserver -Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server -Dorg.kie.server.controller=http://localhost:8080/kie-wb/rest/controller

值得注意的是:在Wildfly下部署Drools工作台,必须使用完整版的配置启动,必须添加-Dorg.kie.demo=false,否则启动报错或者运行报错。这个在启动命令中可以看得出来,必须使用standalone-full.xml。

③ 查看服务

最后检查WildFly是否成功启动,并访问Business Central的主页:http://localhost:8080/kie-wb 。

使用账户/密码:workbench/workbench! 登录。

④ 配置访问端口

现在启动项目,使用默认的端口,但此时如果想修改默认的8080端,可在wildfly根目录下依次查找<JBOSS_HOME>/standalone/configuration/standalone-full.xml。在该文件的最下面有这样一段配置代码。

 <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

 <socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>

 <socket-binding name="http" port="${jboss.http.port:8080}"/>

 <socket-binding name="https" port="${jboss.https.port:8443}"/>

 <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>

 <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/>

 <socket-binding name="txn-recovery-environment" port="4712"/>

 <socket-binding name="txn-status-manager" port="4713"/>

<outbound-socket-binding name="mail-smtp">

 <remote-destination host="localhost" port="25"/>

 </outbound-socket-binding>

</socket-binding-group>

 

修改对应的端口即可。比如要修改http请求的端口,那修改${jboss.http.port:8080}中的端口即可。

(B) 管理端页面部署

登录管理端http://localhost:8090

点击Deployment 栏目,添加项目包即可。

在这里插入图片描述
修改对应的端口即可。比如要修改http请求的端口,那修改${jboss.http.port:8080}中的端口即可。

posted @   天外燕来  阅读(531)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 2025年我用 Compose 写了一个 Todo App
· 张高兴的大模型开发实战:(一)使用 Selenium 进行网页爬虫
点击右上角即可分享
微信分享提示