Skip to content

WuLex/ZookeeperAdministrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZookeeperAdministrator

Zookeeper四字命令管理,在3.5.3 中的新功能:四个字母的单词在使用前需要明确列入白名单。具体请参考集群配置章节中的4lw.commands.whitelist 。未来四字母命令将被弃用,请改用AdminServer

进入到zookeeper的目录下找到zoo.cfg,在zoo.cfg中添加如下一行代码并保存退出

开启四字命令

4lw.commands.whitelist=*

然后我们进到zookeeperbin目录进行重启zookeeper即可:

Linux系统中重启命令:

./zkServer.sh  restart

Windows系统中关闭先前的窗口,双击启动:

zkServer.cmd

windows系统中需要调用netcat执行命令,如:echo mntr | nc localhost 2181

项目运行结果如图:

在这里插入图片描述 在这里插入图片描述

Releases

No releases published

Packages

No packages published

Languages