可视化窗口工具: ZooInspector
下载地址: https://issues.apache.org/jira/secure/attachment/12436620/ZooInspector.zip
用法: 下载后解压,然后进入目录ZooInspector\build, 执行
java -jar zookeeper-dev-ZooInspector.jar
,然后会弹出操作窗口
可视化web工具: zkui
参考链接: https://blog.csdn.net/HeatDeath/article/details/79045059
安装前先检查环境,需要安装Java和maven
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
- 测试,http://localhost:9090,如能看到如下页面则代表zookeeper安装运行正常
- 默认的账号和密码登录
username:admin
password:manager