命令

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

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐