1. 程式人生 > >Telnet 測試zookeeper是否啟動成功

Telnet 測試zookeeper是否啟動成功

linux telnet zookeeper kafka

linux環境下,有些情況下,我們想看下是否成功啟動了Zookeeper,可以才用telnet的方式


Steps:

  1. login in the linux os

  2. input the command: telnet localhost 2181

  3. If you see the info: Mode: standalone


login as: root
[email protected] password:
Last login: Tue Jun 13 22:56:10 2017 from cn-tangym-2.ap.uis.unisys.com
[[email protected]

/* */ ~]# 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.
[[email protected] ~]#



本文出自 “軟件架構與開發” 博客,請務必保留此出處http://yuanzhitang.blog.51cto.com/2769219/1936511

Telnet 測試zookeeper是否啟動成功