ZooKeeper 可视化工具

可视化窗口工具: ZooInspector

弹出的窗口

可视化web工具: zkui

okamideMacBook-Pro:zkui-master root# java -version
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
okamideMacBook-Pro:zkui-master root# mvn -v
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-25T02:41:47+08:00)
Maven home: /usr/local/softwear/maven/apache-maven-3.6.0
Java version: 1.8.0_181, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.14", arch: "x86_64", family: "mac"
  • 使用maven打包工程,执行成功后会生成一个jar文件
mvn clean install
  • 将config.cfg复制到上一步生成的jar文件所在目录,然后修改配置文件中的zookeeper地址
zkServer=localhost:2181
  • 执行运行命令
java -jar zkui-2.0-SNAPSHOT-jar-with-dependencies.jar
登陆界面
  • 默认的账号和密码登录
username:admin
password:manager
操作界面

推荐阅读更多精彩内容