哑安装BFT Agent

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

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

哑安装程序

  1. 将“primeton-installer-1.2.0.zip”,“Primeton_BFT_7.5.0_Agent.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” 目录中。

配置

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

2.将“primeton-installer-1.2.0\configs\agentConfig”内文件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_Agent.zip,路径为双斜杠
zipPath=D:\\temp\\win_install\\Primeton_BFT_7.5.0_Agent.zip
#产品安装目标目录
destPath=D:\\temp\\win_install\\Agent_Install
#安装目录不存在时是否自动创建
autoCreateDir=true
#覆盖安装开关
coverByForce=true
#文件传输Agent名称
AGENT_NAME=defaultAgent
#文件传输Agent密码
AGENT_PASS=00000000
#文件传输 Server IP地址
BFT_SERVER_IP=127.0.0.1
#agent登录server, server的ip和登录端口
AGENT_SERVERS=127.0.0.1:8091
RECEIVE_PORT=7081
HTTP_PORT=8183
FILE_IS_BACK=false
#文件备份路径
FILE_BACK_PATH=D:\\temp\\win_install\\Agent_Install\\FileBackup
FILE_BACK_TIME=14
FILE_BACK_SOURCE_TIME=7
BFT_AGENT_HTTP_PORT=8070

参数说明:

参数 说明
zipPath 待安装的安装介质(不要解压)
destPath 产品安装目标目录
autoCreateDir 安装目录不存在时是否自动创建
coverByForce 覆盖安装开关,true:安装目录存在文件,则覆盖
AGENT_NAME 文件传输Agent名称
AGENT_PASS 文件传输Agent密码
BFT_SERVER_IP 文件传输 Server IP地址
AGENT_SERVERS agent登录server, server的ip和登录端口
RECEIVE_PORT BFT Agent接收文件监听端口
HTTP_PORT HTTP端口
FILE_IS_BACK 文件是否备份
FILE_BACK_PATH 文件备份路径
FILE_BACK_TIME 备份文件保存天数
FILE_BACK_SOURCE_TIME 文件保存天数
BFT_AGENT_HTTP_PORT 客户端文件传输监听端口

安装

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

[2022-08-02 14:52:59,110][INFO][com.primeton.installer.Installer:48][main] Starting Installer on DESKTOP-VCLNDEH with PID 5192 (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 14:52:59,114][INFO][com.primeton.installer.Installer:593][main] No active profile set, falling back to default profiles: default
[2022-08-02 14:52:59,158][INFO][org.springframework.context.annotation.AnnotationConfigApplicationContext:583][main] Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@49e53c76: startup date [Tue Aug 02 14:52:59 CST 2022]; root of context hierarchy
[2022-08-02 14:52:59,777][INFO][org.springframework.jmx.export.annotation.AnnotationMBeanExporter:431][main] Registering beans for JMX exposure on startup
[2022-08-02 14:52:59,792][INFO][com.primeton.installer.Installer:57][main] Started Installer in 0.987 seconds (JVM running for 1.441)
[2022-08-02 14:52:59,793][INFO][com.primeton.installer.Installer:35][main] start install BFTAgent ... 
[2022-08-02 14:53:00,149][INFO][com.primeton.installer.util.ZipUtil:37][main] start unzip D:\temp\win_install\Primeton_BFT_7.5.0_Agent.zip
[2022-08-02 14:53:00,154][INFO][org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:166][main] Initializing ExecutorService
[2022-08-02 14:53:00,158][INFO][org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:203][main] Shutting down ExecutorService
[2022-08-02 14:53:00,996][INFO][com.primeton.installer.util.ZipUtil:86][main] unzip D:\temp\win_install\Primeton_BFT_7.5.0_Agent.zip success!
[2022-08-02 14:53:00,997][INFO][com.primeton.installer.replace.PropertyReplacer:42][main] start replace config properties ...
[2022-08-02 14:53:01,013][INFO][com.primeton.installer.replace.PropertyReplacer:76][main] finished replace config properties!
[2022-08-02 14:53:01,014][INFO][com.primeton.installer.Installer:102][main] BFTAgent installed successfully!!!
[2022-08-02 14:53:01,016][INFO][org.springframework.context.annotation.AnnotationConfigApplicationContext:985][Thread-2] Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@49e53c76: startup date [Tue Aug 02 14:52:59 CST 2022]; root of context hierarchy
[2022-08-02 14:53:01,017][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”查看哑安装详细日志。

验证

前提: server处于正常启动状态

启动BFT Agent,运行“D:\temp\win_install\Agent_Install\startBFTAgent.cmd”,出现以下内容,表示BFT Agent启动成功

5

停止

运行“D:\temp\win_install\Agent_Install\stopBFTAgent.cmd”。

results matching ""

    No results matching ""