使用Shell命令查看zookeeper版本

命令

echo stat|nc localhost 2181 

执行结果

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

你可能感兴趣的:(使用Shell命令查看zookeeper版本)