https://www.cnblogs.com/likehua/p/3999588.html
常用命令
ZooKeeper 支持某些特定的四字命令字母与其的交互。它们大多是查询命令,用来获取 ZooKeeper 服务的当前状态及相关信息。用户在可以通过 telnet 或 nc 向 ZooKeeper 提交相应的命令。 ZooKeeper 常用四字命令见下表 1 所示:
表 1 : ZooKeeper 四字命令
图 1 是 ZooKeeper 四字命令的简单用例:
通过 nc 命令可用代替telnet 执行zk的一些命令
echo stat | nc xxxxxxx 2181
可用代替 telnet xxxxxxx 2181 输入命令的一些交互操作