什么是zkUI
操作zk【Zookeeper】的后台管理系统,也叫可视化工具
使用zkUI
前提启动了zkServer zkServer如何启动
git hub拉取zkUI源码
1、mvn clean install
2、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.
本人idea操作
3、Run the jar. ( nohup java -jar zkui-2.0-SNAPSHOT-jar-with-dependencies.jar & )
4、http://localhost:9090
zkui导入配置文件规则
文件内容格式如下
/config/dev/{application-name},{profile}={key}={value}
/config/dev 为zk读取的根节点默认为config
application-name 为服务名称【SpringCloud项目】
profile yml文件的 spring.profile.active值
key 导入的属性名
value 导入的属性值
假设zkui.txt.txt内容为
/config/dev/app,dev=age=23
/config/dev/app,dev=name=zk