存储模式为server模式,即通过调用server来实现存储操作。 另外此模式支持任务管理,需要配置quartz cluster数据库链接
下载最新RELEASE版本
创建dashboard目录
makdir dashboard
cd dashboard
下载tcc-transaction-dashboard-xxx.tar.gz,解压到dashboard目录
dashboard % tar zxvf tcc-transaction-dashboard-2.0.0.tar.gz
x conf/application.yaml
x lib/tcc-transaction-dashboard.jar
x conf/
x conf/logback.xml
x bin/
x bin/startup.sh
x bin/startup.cmd
x bin/shutdown.sh
x bin/shutdown.cmd
dashboard % tree
.
├── bin
│ ├── shutdown.cmd
│ ├── shutdown.sh
│ ├── startup.cmd
│ └── startup.sh
├── conf
│ ├── application.yaml
│ └── logback.xml
├── lib
│ └── tcc-transaction-dashboard.jar
└── tcc-transaction-dashboard-2.0.0.tar.gz
3 directories, 8 files
dashboard %
conf/application.yaml配置详见
启动dashboard
sh bin/startup.sh
默认地址为:http://localhost:22332/tcc-transaction-dashboard
默认用户名密码: admin/123456
server模式下,需要和server服务交互。
注意: dashboard选择nacos或者zookeeper注册中心,前提是server端以对应的注册中心来暴露。
这里提供了三种server服务发现的方式:
application.yaml可如下配置
server:
servlet:
context-path: /tcc-transaction-dashboard
port: 22332
logging:
level:
root: info
spring:
application:
name: tcc-transaction-dashboard
tcc:
dashboard:
userName: admin
password: 123456
connection-mode: server
registry: # connection-mode为server时使用
registry-type: direct
direct:
server-addresses: http://localhost:12332
recovery:
quartz-clustered: true
quartz-data-source-url: jdbc:mysql://localhost:3306/TCC_SERVER?useSSL=false&allowPublicKeyRetrieval=true
quartz-data-source-driver: com.mysql.jdbc.Driver
quartz-data-source-user: root
quartz-data-source-password: welcome1
需要安装nacos
application.yaml可如下配置
server:
servlet:
context-path: /tcc-transaction-dashboard
port: 22332
logging:
level:
root: info
spring:
application:
name: tcc-transaction-dashboard
tcc:
dashboard:
userName: admin
password: 123456
connection-mode: server
registry: # connection-mode为server时使用
registry-type: nacos
nacos:
server-addr: localhost:8848
recovery:
quartz-clustered: true
quartz-data-source-url: jdbc:mysql://localhost:3306/TCC_SERVER?useSSL=false&allowPublicKeyRetrieval=true
quartz-data-source-driver: com.mysql.jdbc.Driver
quartz-data-source-user: root
quartz-data-source-password: welcome1
需要安装zookeeper
application.yaml可如下配置
server:
servlet:
context-path: /tcc-transaction-dashboard
port: 22332
logging:
level:
root: info
spring:
application:
name: tcc-transaction-dashboard
tcc:
dashboard:
userName: admin
password: 123456
connection-mode: server
registry: # connection-mode为server时使用
registry-type: zookeeper
zookeeper:
connect-string: localhost:2181
recovery:
quartz-clustered: true
quartz-data-source-url: jdbc:mysql://localhost:3306/TCC_SERVER?useSSL=false&allowPublicKeyRetrieval=true
quartz-data-source-driver: com.mysql.jdbc.Driver
quartz-data-source-user: root
quartz-data-source-password: welcome1