Primeton BFT Primeton BFT
Primeton BFT7.6GA文档库
  • 哑安装BFT LogCenter
  • 哑安装程序
  • 配置
  • 安装
  • 验证
  • 停止

# 哑安装BFT LogCenter

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

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

# 哑安装程序

  1. 将“primeton-installer-1.2.0.zip”,“Primeton_BFT_7.6.0_LogCenter.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\logcenter”内文件 application.yml 拷贝至“primeton-installer-1.2.0\config”。

2.将“primeton-installer-1.2.0\configs\logcenter”内文件 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_LogCenter.zip,路径为双斜杠
zipPath=D:\\temp\\win_install\\Primeton_BFT_7.6.0_LogCenter.zip
#产品安装目标目录,windows系统为D:\\temp\\win_install\\LogCenter_Install,路径为双斜杠
destPath=D:\\temp\\win_install\\LogCenter_Install
#安装目录不存在时是否自动创建
autoCreateDir=true
#覆盖安装开关
coverByForce=true
#数据库驱动类
dbDriver=com.mysql.jdbc.Driver
#数据库连接URL, 需提前创建好数据库[bft76], 注意 `&` 无需转义
dbUrl=jdbc:mysql://127.0.0.1:3306/bft76?useSSL=false&serverTimezone=Asia/Shanghai
#数据库用户名
dbUserName=root
#数据库密码
dbPassword=root
#数据库类型:MYSQL, ORACLE, SQL_SERVER, POSTGRESQL
dbtype=Mysql
#文件传输日志服务器端口
SERVER_PORT=29898
#方言配置可参考说明部分
dbplatform=org.hibernate.dialect.MySQL5InnoDBDialect

参数说明:

参数 说明
参数 说明
zipPath 待安装的安装介质(不要解压)
destPath 产品安装目标目录
autoCreateDir 安装目录不存在时是否自动创建
coverByForce 覆盖安装开关
dbDriver 数据库驱动
dbUrl 数据库连接url
dbUserName 数据库用户名
dbPassword 数据库密码
dbtype 数据库类型, MYSQL, ORACLE, SQL_SERVER, POSTGRESQL
SERVER_PORT 文件传输日志服务器端口
dbplatform 方言配置可参考说明部分

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

# 安装

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

[2024-01-29 16:27:49,649][INFO][com.primeton.installer.Installer:48][main] Starting Installer on DESKTOP-VCLNDEH with PID 13232 (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 16:27:49,653][INFO][com.primeton.installer.Installer:593][main] No active profile set, falling back to default profiles: default
[2024-01-29 16:27:49,689][INFO][org.springframework.context.annotation.AnnotationConfigApplicationContext:583][main] Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@61322f9d: startup date [Mon Jan 29 16:27:49 CST 2024]; root of context hierarchy
[2024-01-29 16:27:50,337][INFO][org.springframework.jmx.export.annotation.AnnotationMBeanExporter:431][main] Registering beans for JMX exposure on startup
[2024-01-29 16:27:50,353][INFO][com.primeton.installer.Installer:57][main] Started Installer in 1.025 seconds (JVM running for 1.476)
[2024-01-29 16:27:50,353][INFO][com.primeton.installer.Installer:35][main] start install BFTLogCenter ... 
[2024-01-29 16:27:50,357][ERROR][com.primeton.installer.Installer:43][main] D:/temp/win_install/BFT76/1118/LogCenter_Install is not exist!
[2024-01-29 16:27:50,357][INFO][com.primeton.installer.util.ZipUtil:37][main] start unzip D:\temp\win_install\BFT76\1118\Primeton_BFT_7.6.0_LogCenter.zip
[2024-01-29 16:27:50,426][INFO][org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:166][main] Initializing ExecutorService
[2024-01-29 16:27:50,434][INFO][org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:203][main] Shutting down ExecutorService
[2024-01-29 16:28:03,456][INFO][com.primeton.installer.util.ZipUtil:86][main] unzip D:\temp\win_install\BFT76\1118\Primeton_BFT_7.6.0_LogCenter.zip success!
[2024-01-29 16:28:03,456][INFO][com.primeton.installer.replace.PropertyReplacer:42][main] start replace config properties ...
[2024-01-29 16:28:03,468][INFO][com.primeton.installer.replace.PropertyReplacer:76][main] finished replace config properties!
[2024-01-29 16:28:03,468][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/LogCenter_Install\lib/
[2024-01-29 16:28:03,472][INFO][com.primeton.installer.Installer:102][main] BFTLogCenter installed successfully!!!
[2024-01-29 16:28:03,476][INFO][org.springframework.context.annotation.AnnotationConfigApplicationContext:985][Thread-2] Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@61322f9d: startup date [Mon Jan 29 16:27:49 CST 2024]; root of context hierarchy
[2024-01-29 16:28:03,476][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\LogCenter_Install\startBFTLog.bat”,出现以下内容,表明BFT LogCenter启动成功

# 停止

  1. 运行“D:\temp\win_install\LogCenter_Install\stopBFTLog.bat”。

← 哑安装 BFT Server 安装 →