13.2. 在 CLI 模式中使用安装程序
您可以使用命令行界面(CLI)来运行 Red Hat Process Automation Manager 安装程序。
Red Hat Decision Manager 是 Red Hat Process Automation Manager 的子集。您必须安装 Red Hat Process Automation Manager,才能使用 Red Hat Decision Manager。
为安全起见,您应该以非 root 用户身份运行安装程序。
先决条件
- Red Hat Process Automation Manager 7.13.2 安装程序 已下载。具体说明请查看 第 12 章 下载 Red Hat Process Automation Manager 安装文件。
- 已安装受支持的 JDK。有关支持的 JDK 列表,请参阅 Red Hat Process Automation Manager 7 支持的配置。
- 提供了备份的 Red Hat JBoss EAP 7.4 服务器安装。
- 需要足够的用户权限以完成安装。
JAR 二进制文件包含在
$PATH
环境变量中。在 Red Hat Enterprise Linux 上,它包含在java-$JAVA_VERSION-openjdk-devel
软件包中。注意Red Hat Process Automation Manager 旨在使用 UTF-8 编码。如果底层 JVM 使用了不同的编码系统,则可能发生意外错误。为确保 JVM 使用 UTF-8,请使用
"-Dfile.encoding=UTF-8"
系统属性。有关系统属性列表,请查看 附录 A, Business Central 系统属性。
流程
在终端窗口中,进入下载安装程序文件的目录,并输入以下命令:
java -jar rhpam-installer-7.13.2.jar -console
java -jar rhpam-installer-7.13.2.jar -console
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 命令行交互式过程将启动并显示最终用户许可证协议。
press 1 to continue, 2 to quit, 3 to redisplay.
press 1 to continue, 2 to quit, 3 to redisplay.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 阅读许可证协议,输入
1
,然后按Enter
继续:Specify the home directory of one of the following servers: Red Hat JBoss EAP 7 or Red Hat JBoss Web Server 5. For more information, see https://access.redhat.com/articles/3405381[Red Hat Process Automation Manager 7 Supported Configurations].
Specify the home directory of one of the following servers: Red Hat JBoss EAP 7 or Red Hat JBoss Web Server 5. For more information, see https://access.redhat.com/articles/3405381[Red Hat Process Automation Manager 7 Supported Configurations].
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输入现有 Red Hat JBoss EAP 7.4 安装的父目录。
安装程序将验证安装在提供的位置的位置。输入
1
确认并继续。注意您可以在同一服务器上安装 Business Central 和 KIE 服务器。然而,您应该在生产环境中在不同的服务器上安装 Business Central 和 KIE 服务器。
按照安装程序中的说明完成安装。
注意在创建用户名和密码时,请确保指定的用户名和密码与角色或组的任何已知标题不冲突。例如,如果有一个名为
admin
的角色,您不应创建用户名为admin
的用户。密码必须至少包含八个字符,且必须至少包含一个数字和一个非字母数字字符(不包括 字符 和 )。
记录用户名和密码。您将需要他们访问 Business Central 和 KIE 服务器。
安装完成后,您会看到此消息:
Would you like to generate an automatic installation script and properties file?
Would you like to generate an automatic installation script and properties file?
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
输入
y
来创建包含安装数据的 XML 文件,或n
完成安装。如果您输入y
,会提示您输入 XML 文件的路径。 输入路径或者按 Enter 键接受推荐的路径。
安装程序会生成两个文件。
auto.xml
文件可自动自动安装,auto.xml.variables
文件存储用户密码和其他敏感变量。在多个系统中使用auto.xml
文件,在与原始安装相同的配置相同的服务器上轻松重复 Red Hat Process Automation Manager 安装。如果需要,更新auto.xml
文件中的installpath
参数。要使用 XML 文件执行安装,请输入以下命令:java -jar rhpam-installer-7.13.2.jar <path-to-auto.xml-file>
java -jar rhpam-installer-7.13.2.jar <path-to-auto.xml-file>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 如果您只安装了 Business Central,请重复这些步骤以便在单独的服务器中安装 KIE 服务器。