安装nc
命令
yum install nc -y
查询zookeeper端口号
[root@localhost bin]# echo stat |nc localhost 2181 stat is not executed because it is not in the whitelist.
解决:
在zookeeper
配置中新增4lw.commands.whitelist=*
vim conf/zoo.cfg 新增: 4lw.commands.whitelist=*