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$

  

posted @ 2012-06-01 16:35  菜鸟MM  阅读(256)  评论(0编辑  收藏  举报