Primeton BFT Primeton BFT
Primeton BFT7.6GA文档库
  • 哑安装BFT Console
  • 哑安装程序
  • 配置
  • 参数说明:
  • 安装
  • 验证
  • 停止

# 哑安装BFT Console

此章节介绍windows环境下,BFT Console哑安装部署。

说明: 本章节中BFT Console安装到“D:\temp\win_install”,用户可根据情况选择安装位置。

# 哑安装程序

  1. 将“primeton-installer-1.2.0.zip”,“Primeton_BFT_7.6.0_Console.zip”压缩包复制到“D:\temp\win_install”目录下。
  2. 在“D:\temp\win_install”目录下创建“primeton-installer-1.2.0”目录。
  3. 用解压工具将“primeton-installer-1.2.0.zip”中的所有内容解压至 “D:\temp\win_install\primeton-installer-1.2.0” 目录中。
  4. 将相应数据库驱动放入“D:\temp\win_install\primeton-installer-1.2.0\drivers”。

# 配置

1.将“primeton-installer-1.2.0\configs\consoleConfig”内文件 application.yml 拷贝至“primeton-installer-1.2.0\config”。

2.将“primeton-installer-1.2.0\configs\consoleConfig”内文件 install.properties 拷贝至“primeton-installer-1.2.0\config”

3.将D:\temp\win_install\primeton-installer-1.2.0\drivers目录下的deleteme.txt删除

4.修改配置文件“primeton-installer-1.2.0\config\install.properties”。

#待安装介质目录, windows系统为D:\\temp\\win_install\\Primeton_BFT_7.6.0_Console.zip,路径为双斜杠
zipPath=D:\\temp\\win_install\\Primeton_BFT_7.6.0_Console.zip
#产品安装目标目录,windows系统为D:\\temp\\win_install\\Console_Install,路径为双斜杠
destPath=D:\\temp\\win_install\\Console_Install
#安装目录不存在时是否自动创建
autoCreateDir=true
#覆盖安装开关
coverByForce=true
#是否初始化数据库
initDB=true
#是否强制初始化数据库
forceInitDB=true
#数据库驱动类
dbDriver=com.mysql.jdbc.Driver
#数据库连接URL, 需提前创建好数据库[bft76], 注意 `&` 符号请配置为 `&`
dbUrl=jdbc:mysql://127.0.0.1:3306/bft76?useSSL=false&serverTimezone=Asia/Shanghai
#数据库用户名
dbUserName=root
#数据库密码,不要使用数字全是0作为数据库密码
dbPassword=root
#数据库类型:mysql=mysql,oracle=oracle,sqlserver=SQL_SERVER,dm=POSTGRESQL,highgo=POSTGRESQL,kingbase=POSTGRESQL,oscar=POSTGRESQL, opengauss=POSTGRESQL,postgresql=POSTGRESQL,ux=POSTGRESQL
dbtype=MYSQL
#平台数据库类型:MYSQL, ORACLE, SQL_SERVER, POSTGRESQL
platformdbtype=MYSQL
#方言配置可参考说明部分
dbplatform=org.hibernate.dialect.MySQL5InnoDBDialect

# 参数说明:

参数 说明
zipPath 待安装的安装介质(不要解压)
destPath 产品安装目标目录
autoCreateDir 安装目录不存在时是否自动创建
coverByForce 覆盖安装开关,true:安装目录存在文件,则覆盖
initDB 是否初始化数据库
forceInitDB 是否强制初始化数据库
dbDriver 数据库驱动类
dbUrl 数据库连接URL
dbUserName 数据库用户名
dbPassword 数据库密码,不要使用数字作为数据库密码
dbtype 数据库类型:MYSQL, ORACLE, SQL_SERVER, POSTGRESQL
platformdbtype 平台数据库类型:MYSQL, ORACLE, SQL_SERVER, POSTGRESQL
dbplatform 方言配置可参考如下安装须知

说明:各类型数据库相关配置详见 安装须知

# 安装

执行“primeton-installer-1.2.0\install.cmd”命令, 出现类似如下提示,安装成功:

[2024-01-29 15:00:56,566][INFO][com.primeton.installer.Installer:48][main] Starting Installer on DESKTOP-VCLNDEH with PID 13212 (D:\temp\win_install\BFT76\1118\primeton-installer-1.2.0\lib\installer-1.2.1.jar started by chswordstyle in D:\temp\win_install\BFT76\1118\primeton-installer-1.2.0)
[2024-01-29 15:00:56,574][INFO][com.primeton.installer.Installer:593][main] No active profile set, falling back to default profiles: default
[2024-01-29 15:00:56,618][INFO][org.springframework.context.annotation.AnnotationConfigApplicationContext:583][main] Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@1613674b: startup date [Mon Jan 29 15:00:56 CST 2024]; root of context hierarchy
[2024-01-29 15:00:57,302][INFO][org.springframework.jmx.export.annotation.AnnotationMBeanExporter:431][main] Registering beans for JMX exposure on startup
[2024-01-29 15:00:57,330][INFO][com.primeton.installer.Installer:57][main] Started Installer in 1.12 seconds (JVM running for 1.568)
[2024-01-29 15:00:57,330][INFO][com.primeton.installer.Installer:35][main] start install BFTConsole ... 
[2024-01-29 15:00:57,334][ERROR][com.primeton.installer.Installer:43][main] D:/temp/win_install/BFT76/1118/Console_Install is not exist!
[2024-01-29 15:00:57,338][INFO][com.primeton.installer.util.ZipUtil:37][main] start unzip D:\temp\win_install\BFT76\1118\Primeton_BFT_7.6.0_Console.zip
[2024-01-29 15:00:57,342][INFO][org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:166][main] Initializing ExecutorService
[2024-01-29 15:00:57,370][INFO][org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:203][main] Shutting down ExecutorService
[2024-01-29 15:02:05,245][INFO][com.primeton.installer.util.ZipUtil:86][main] unzip D:\temp\win_install\BFT76\1118\Primeton_BFT_7.6.0_Console.zip success!
[2024-01-29 15:02:05,249][INFO][com.primeton.installer.replace.PropertyReplacer:42][main] start replace config properties ...
[2024-01-29 15:02:05,269][INFO][com.primeton.installer.replace.PropertyReplacer:76][main] finished replace config properties!
[2024-01-29 15:02:05,269][INFO][com.primeton.installer.util.DBDriverUtil:70][main] copy D:\temp\win_install\BFT76\1118\primeton-installer-1.2.0\drivers\mysql-connector-java-5.1.32.jar to D:/temp/win_install/BFT76/1118/Console_Install\lib/
[2024-01-29 15:02:05,325][INFO][com.primeton.installer.Installer:102][main] BFTConsole installed successfully!!!
[2024-01-29 15:02:05,325][INFO][org.springframework.context.annotation.AnnotationConfigApplicationContext:985][Thread-2] Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@1613674b: startup date [Mon Jan 29 15:00:56 CST 2024]; root of context hierarchy
[2024-01-29 15:02:05,329][INFO][org.springframework.jmx.export.annotation.AnnotationMBeanExporter:449][Thread-2] Unregistering JMX-exposed beans on shutdown

说明: 可以打开“D:\temp\win_install\primeton-installer-1.2.0\logs\install.log”查看哑安装详细日志。

# 验证

1.启动BFT Console,运行“D:\temp\win_install\Console_Install\startBFTConsole.cmd”,出现以下内容,表明BFT Console启动成功:

2.浏览器访问BFT Console,登录BFT控制管理中心:http://{ip}:28082:

说明: 默认系统管理员用户:bftadmin,初始密码:000000(初次登录后需要改密码)

# 停止

运行“D:\temp\win_install\Console_Install\stopBFTConsole.cmd”。

← 集群安装 哑安装 BFT Server →