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 輸入命令的一些交互操作