linux telnet判断是否成功,Telnet 测试zookeeper是否启动成功

在linux环境下,有些情况下,我们想看下是否成功启动了Zookeeper,可以才用telnet的方式

Steps:login in the linux os

input the command: telnet localhost 2181

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值