2020-12-18 09:22:55 更新
ZooKeeper下载
ZooKeeper安装:解压到C:\Dev\Env,解压后效果如下
ZooKeeper配置:复制conf下的zoo_sample.cfg为zoo.cfg,并修改如下俩个配置
dataDir=C:\\Dev\\Env\\apache-zookeeper-3.5.8-bin\\zkdata
dataLogDir=C:\\Dev\\Env\\apache-zookeeper-3.5.8-bin\\zklog
ZooKeeper启动与连接
:: 启动ZK服务端
C:\Dev\Env\apache-zookeeper-3.5.8-bin\bin>zkServer.cmd
:: 启动ZK客户端连接ZK
C:\Dev\Env\apache-zookeeper-3.5.8-bin\bin>zkCli.cmd
至此 Windows下ZooKeeper下的安装完成