gqinvs 发表于 2015-9-7 07:39:43

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$

  
页: [1]
查看完整版本: zookeeper的使用