Zookeeper: connect to server

Connect to the zookeeper server


1.Start server

λ cd C:\zookeeper-3.4.14\bin
λ zkServer.cmd

2.Client connect to the server

λ cd C:\zookeeper-3.4.14\bin
λ zkCli.cmd -server 127.0.0.1:2181

or

λ cd C:\zookeeper-3.4.14\bin
λ zkCli.cmd -server localhost:2181

Attention: below not work!

λ cd C:\zookeeper-3.4.14\bin
λ zkCli.cmd 127.0.0.1:2181

3.Stop the connection

quit

https://www.cnblogs.com/siv8/p/5682991.html

你可能感兴趣的:(zookeeper,server,client,command,connection,Command,Configuration,Zookeeper)