哑安装BFT LogCenter

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

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

哑安装程序

  1. 将“primeton-installer-1.2.0.zip”,“Primeton_BFT_7.5.0_LogCenter.zip”压缩包复制到“D:\temp\win_installA”目录下。
  2. 在“D:\temp\win_installA”目录下创建“primeton-installer-1.2.0”目录。
  3. 用解压工具将“primeton-installer-1.2.0.zip”中的所有内容解压至 “D:\temp\win_installA \primeton-installer-1.2.0” 目录中。
  4. 将相应数据库驱动放入“D:\temp\win_installA \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.5.0_LogCenter.zip,路径为双斜杠
zipPath=D:\\temp\\win_install\\Primeton_BFT_7.5.0_LogCenter.zip
#产品安装目标目录
destPath=D:\\temp\\win_install\\Primeton_BFT_7.5.0_LogCenter
#安装目录不存在时是否自动创建
autoCreateDir=true
#覆盖安装开关
coverByForce=true
#数据库驱动类
dbDriver=com.mysql.jdbc.Driver
#数据库连接URL, 需提前创建好数据库[bft75la2]
dbUrl=jdbc:mysql://127.0.0.1:3306/bft75la2
#数据库用户名
dbUserName=root
#数据库密码
dbPassword=root
#数据库类型:MYSQL、ORACLE、SQLSERVER、DM、OSCAR、KINGBASEES
dbtype=Mysql
#文件传输日志服务器端口
SERVER_PORT=29898
#mysql、oracle、sqlserver可以不配置dbplatform,置空即可。dm建议配置为“org.hibernate.dialect.DmDialect”,oscar和kingbaseES建议配置为“org.hibernate.dialect.OracleDialect”
dbplatform=

参数说明:

参数 说明
参数 说明
zipPath 带安装介质目录
destPath 产品安装目标目录
autoCreateDir 安装目录不存在时是否自动创建
coverByForce 覆盖安装开关
dbDriver 数据库驱动
dbUrl 数据库连接url
dbUserName 数据库用户名
dbPassword 数据库密码
dbtype 数据库类型
SERVER_PORT 文件传输日志服务器端口
dbplatform mysql、oracle、sqlserver可以不配置dbplatform,置空即可。dm建议配置为“org.hibernate.dialect.DmDialect”,oscar和kingbaseES建议配置为“org.hibernate.dialect.OracleDialect”

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

安装

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

[2022-08-02 15:13:08,744][INFO][com.primeton.installer.Installer:48][main] Starting Installer on DESKTOP-VCLNDEH with PID 6180 (D:\temp\win_install\primeton-installer-1.2.0\lib\installer-1.2.1.jar started by chswordstyle in D:\temp\win_install\primeton-installer-1.2.0)
[2022-08-02 15:13:08,748][INFO][com.primeton.installer.Installer:593][main] No active profile set, falling back to default profiles: default
[2022-08-02 15:13:08,795][INFO][org.springframework.context.annotation.AnnotationConfigApplicationContext:583][main] Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@61322f9d: startup date [Tue Aug 02 15:13:08 CST 2022]; root of context hierarchy
[2022-08-02 15:13:09,436][INFO][org.springframework.jmx.export.annotation.AnnotationMBeanExporter:431][main] Registering beans for JMX exposure on startup
[2022-08-02 15:13:09,447][INFO][com.primeton.installer.Installer:57][main] Started Installer in 1.034 seconds (JVM running for 1.478)
[2022-08-02 15:13:09,448][INFO][com.primeton.installer.Installer:35][main] start install BFTLogCenter ... 
[2022-08-02 15:13:09,453][INFO][com.primeton.installer.util.ZipUtil:37][main] start unzip D:\temp\win_install\Primeton_BFT_7.5.0_LogCenter.zip
[2022-08-02 15:13:09,457][INFO][org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:166][main] Initializing ExecutorService
[2022-08-02 15:13:09,468][INFO][org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:203][main] Shutting down ExecutorService
[2022-08-02 15:13:11,388][INFO][com.primeton.installer.util.ZipUtil:86][main] unzip D:\temp\win_install\Primeton_BFT_7.5.0_LogCenter.zip success!
[2022-08-02 15:13:11,389][INFO][com.primeton.installer.replace.PropertyReplacer:42][main] start replace config properties ...
[2022-08-02 15:13:11,404][INFO][com.primeton.installer.replace.PropertyReplacer:76][main] finished replace config properties!
[2022-08-02 15:13:11,405][INFO][com.primeton.installer.util.DBDriverUtil:70][main] copy D:\temp\win_install\primeton-installer-1.2.0\drivers\mysql-connector-java-5.1.32.jar to D:/temp/win_install/Primeton_BFT_7.5.0_LogCenter\lib/
[2022-08-02 15:13:11,408][INFO][com.primeton.installer.Installer:102][main] BFTLogCenter installed successfully!!!
[2022-08-02 15:13:11,410][INFO][org.springframework.context.annotation.AnnotationConfigApplicationContext:985][Thread-2] Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@61322f9d: startup date [Tue Aug 02 15:13:08 CST 2022]; root of context hierarchy
[2022-08-02 15:13:11,412][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\Primeton_BFT_7.5.0_LogCenter\startup.bat”,出现以下内容,表明BFT LogCenter启动成功

6

停止

  1. 运行“D:\temp\win_install\Primeton_BFT_7.5.0_LogCenter\ shutdown.bat”。

results matching ""

    No results matching ""