zookeeper的使用

		zookeeper的使用 
zookeeper启动之后,不需要执行命令,只需查看批准的状况,命令如下:

1、ruok - The server will respond with imok if it is running. Otherwise it will not respond at all.

2、kill - When issued from the local machine, the server will shut down.

3、dump - Lists the outstanding sessions and ephemeral nodes. This only works on the leader.

4、stat - Lists statistics about performance and connected clients.

例如:

$echo ruok | nc 127.0.0.1 3355

Imok$

  

原文地址:https://www.cnblogs.com/yuchunju/p/2530996.html