1. 下载

git clone <https://github.com/DeemOpen/zkui.git>

# 或者直接下载zip源码包

2. 使用

2.1. vsCode打开目录,并打包

mvn clean install

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7e492f3d-3d4d-4f1f-b525-09fd7a7bdd9d/Untitled.png

完成后会有target包

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/94a58123-0acc-4d0b-9bc5-9c21b255890b/Untitled.png

Copy the config.cfg to the folder with the jar file. Modify it to point to the zookeeper instance. Multiple zk instances are coma separated. eg: server1:2181,server2:2181. First server should always be the leader.

将config.cfg复制到有jar文件的文件夹中(即target文件夹)。修改它以指向zookeeper实例。多个zk实例用逗号分隔。例如:server1:2181,server2:2181。第一个服务器应该永远是领导者。

2.2 配置config.cfg文件

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/92dc4cd8-206f-4f05-a111-caedbaad5aba/Untitled.png

2.3 运行jar(Run the jar.)

nohup java -jar zkui-2.0-SNAPSHOT-jar-with-dependencies.jar &

#nohup 英文全称 no hang up(不挂起),用于在系统后台不挂断地运行命令,退出终端不会影响程序的运行。

2.4 测试