Zookeeper各种命令集锦

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/a1010256340/article/details/89948797

1.使用Shell命令查看zookeeper版本

    1.1命令

echo stat|nc localhost 2181 


    1.2执行结果

jiafeimao@jiafeimaodeMacBook-Pro:~$     echo stat|nc localhost 2181
Zookeeper version: 3.4.6-1569965, built on 02/20/2014 09:09 GMT
Clients:
 /127.0.0.1:58098[0](queued=0,recved=1,sent=0)
 
Latency min/avg/max: 0/0/0
Received: 2
Sent: 1
Connections: 1
Outstanding: 0
Zxid: 0x4d6c
Mode: standalone
Node count: 176

 

 

展开阅读全文

没有更多推荐了,返回首页