Skip to content
Primeton BFT7.6GA文档库/产品安装指南/微应用方式安装/BFT后端服务部署

BFT后端服务部署

此章节介绍以微应用方式安装大文件传输平台控制管理中心模块后端服务。

下载BFTConsole微服务后端介质并解压

下载BFTConsole微服务版安装介质Primeton_BFT_7.6.0_Console_AFC_Server.zip,进行解压,解压后目录如下图所:

1705311322615

放置数据库驱动

将系统数据库的相应驱动放入{bftconsole解压目录 }/lib目录下

初始化bft数据库信息

进入{bftconsole解压目录}/dbscripts下,找到当前使用的对应数据库目录,执行3.bftconsole_table.sql、4.bftconsole_data.sql脚本(微服务版本无需执行afc相关脚本

dbscript

以MySql为例,只需执行3.bftconsole_table.sql、4.bftconsole_data.sql 两个脚本

dbscript1

配置文件修改

修改BFTConsole微服务版配置信息,完成BFTConsole后端服务配置工作。

数据库连接信息修改

进入{ bftconsole解压目录 }/config /BFT_BOOT_CONSOLE/config目录下,修改user-config.xml内数据库连接信息目录下,修改user-config.xml文件数据库连接信息。

config1

xml
<group name="default">
       <configValue key="Database-Type">MySql</configValue>
       <configValue key="Jdbc-Type"/>
       <configValue key="C3p0-DriverClass">com.mysql.jdbc.Driver</configValue>
       <configValue key="C3p0-Url">jdbc:mysql://127.0.0.1:3306/esb?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&useSSL=false</configValue>
       <configValue key="C3p0-UserName">root</configValue>
       <configValue key="C3p0-Password">root</configValue>
       <configValue key="C3p0-PoolSize">10</configValue>
       <configValue key="C3p0-MaxPoolSize">50</configValue>
       <configValue key="C3p0-MinPoolSize">10</configValue>
       <!-- //seconds, 0 means connections never expire -->
       <configValue key="C3p0-MaxIdleTime">600</configValue>
       <!-- //idle connections never tested -->
       <configValue key="C3p0-IdleConnectionTestPeriod">900</configValue>
       <configValue key="C3p0-MaxStatements">0</configValue>
       <configValue key="C3p0-NumHelperThreads">1</configValue>
       <configValue key="Transaction-Isolation">ISOLATION_DEFAULT</configValue>
       <configValue key="Test-Connect-Sql">SELECT count(*) from EOS_UNIQUE_TABLE</configValue>
       <configValue key="Retry-Connect-Count">-1</configValue>
</group>

字段说明:

参数说明
Database-Type数据库类型,根据实际环境修改。
C3p0-DriverClass数据库数据库类,根据实际环境修改。
C3p0-Url访问数据库的JDBC URL,根据实际环境修改。
C3p0-UserName数据库用户名,根据实际环境修改。例如:root
C3p0-Password数据库用户密码,根据实际环境修改。例如:root

Redis信息修改

{ bftconsole解压目录 }/config目录下,修改application.properties文件内redis配置信息

config2

spring.redis.host=127.0.0.1
spring.redis.port=6379
spring.redis.password=
spring.redis.lettuce.pool.max-active=100
spring.redis.lettuce.pool.max-idle=100
spring.redis.lettuce.pool.max-wait=5000

字段说明:

标签页说明
spring.redis.hostredis服务器地址
spring.redis.portredis服务端口
spring.redis.passwordredis密码

AFCenter信息修改

进入{ bftconsole解压目录 }/config目录下,修改application-afc.properties文件内afc.application.name 为步骤2.1中afc访问地址。例如:127.0.0.1:28083

afc.application.name=AFCENTER
afc.application.tenant=sys_tenant
eos.application.sys-code=EOS-DEMO-SYS
eos.application.sys-key=dc6baaed30e541d78bb91274803d9432

启动BFTConsole后端服务

进入{BFTConsole介质解压目录 }目录下,执行系统的相应启动脚本启动BFTConsole后端服务。

签页说明
startBFTConsole.cmdwindows启动脚本
startBFTConsole.shwindows停止脚本
stopBFTConsole.cmdlinux启动脚本
stopBFTConsole.shlinux停止脚本