Telnet 测试zookeeper是否启动成功

在Linux环境下,有时咱们想看下是否成功启动了Zookeeper, 能够才用telnet的方式进行测试linux


Steps:bash

  1.   登陆 linux ide

  2.   输入telnet命令: telnet localhost 2181测试

  3.   若是看到字样:   Mode: standalone,表明你的ZookKeeper已经启动成功
    ui


login as: root    
root@USTR-ERL2-0155.na.uis.unisys.com's password:    
Last login: Tue Jun 13 22:56:10 2017 from cn-tangym-2.ap.uis.unisys.com

[root@USTR-ERL2-0155 ~]# telnet localhost 2181
Trying ::1...
Connected to localhost.Escape character is '^]'.stat
Zookeeper version: 3.4.9-1757313, 
built on 08/23/2016 06:50 
GMT
Clients: 
/0:0:0:0:0:0:0:1:38156[0](queued=0,recved=1,sent=0) 
/0:0:0:0:0:0:0:1:44030[1](queued=0,recved=8966,sent=8966) 
/0:0:0:0:0:0:0:1:44026[1](queued=0,recved=8966,sent=8966) 
/127.0.0.1:59158[1](queued=0,recved=8966,sent=8966)

    Latency min/avg/max: 0/0/477
    Received: 223306
    Sent: 68118
    Connections: 4
    Outstanding: 0
    Zxid: 0x64
    Mode: standalone
    Node count: 26
    Connection closed by foreign host.


[root@USTR-ERL2-0155 ~]#spa

相关文章
相关标签/搜索