安装BFT LogCenter
此章节介绍Linux环境下,BFT LogCenter解压安装部署。
说明:
本章节中BFT LogCenter安装到“/home/bft75”,用户可根据情况选择安装位置。
安装
1.将“Primeton_BFT_7.5.0_LogCenter.tar”压缩包复制到“/home/bft75”目录下。
2.执行如下命令,在“/home/bft75”目录下创建“PrimetonBFT_7.5.0 LogCenter”目录。
cd /home/bft75
mkdir Primeton_BFT_7.5.0_LogCenter
3.使用如下命令将“PrimetonBFT_7.5.0 LogCenter.tar”中的所有内容解压至 “home/bft75/PrimetonBFT_7.5.0 LogCenter” 目录中。
cd /home/bft75
tar -xvf Primeton_BFT_7.5.0_LogCenter.tar -C Primeton_BFT_7.5.0_LogCenter
配置
- 将数据库驱动包拷贝到“/home/bft75/Primeton_BFT_7.5.0_LogCenter/lib”目录。
- 使用如下命令,编辑"/home/bft75/Primeton_BFT_7.5.0_LogCenter/config/application.properties”文件,配置BFT LogCenter。
cd /home/bft75/Primeton_BFT_7.5.0_LogCenter/config
vi application.properties
server.port=29898
spring.application.name=BFT-LOG-CENTER
server.app-server.max-connections=500
server.app-server.max-swallow-size=-1
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
spring.datasource.username=root
spring.datasource.password=ENC(oJ6CMK5x9QgIWMJ/mOILvjrb633GLdxb)
spring.datasource.url=jdbc:mysql://192.168.16.97:3306/bft75la2?useSSL=false&serverTimezone=Asia/Shanghai
忽略......
参数说明:
参数 | 说明 |
---|---|
server.port | 日志中心访问端口 |
spring.application.name | 日志中心应用名称 |
server.app-server.max-connections | 服务最大连接数 |
spring.datasource.driver-class-name | 数据库驱动 |
spring.jpa.properties.hibernate.dialect | 数据库方言 |
spring.datasource.username | 数据库用户名,根据实际环境修改。 |
spring.datasource.password | 数据库用户密码,根据实际环境修改。 |
spring.datasource.url | 访问数据库的JDBC URL,根据实际环境修改。 |
说明:各类型数据库相关配置详见 安装须知
验证
- 使用如下命令启动BFTLogCenter
cd /home/bft75/Primeton_BFT_7.5.0_LogCenter
./startup.sh
查看启动提示,并获取系统日志路径
/home/bft75/Primeton_BFT_7.5.0_ LogCenter/jre logcenter started agent logcenter detail log see /home/bft75/Primeton_BFT_7.5.0_ LogCenter/logs/bftlogcenter.log
使用如下命令查看启动日志,出现如下提示,日志中心(BFTLogCenter)启动成功
tail -200f /home/bft75/Primeton_BFT_7.5.0_ LogCenter/logs/bftlogcenter.log
- 浏览器访问BFT Logcenter,登录日志中心管理端:http://{ip}:29098 如下:
停止
运行如下命令停止日志中心。
cd /home/bft75/Primeton_BFT_7.5.0_LogCenter
./shutdown.sh