文章目录
一、安装zookeeper
1.下载zookeeper:zookeeper下载
此文使用版本:apache-zookeeper-3.6.4
2.添加配置文件
在config目录下复制一份zoo_sample.cfg文件到同级目录,然后更改名称为zoo.cfg
tickTime=2000
initLimit=10
syncLimit=5
clientPort=2181
dataDir=D:\\xxx\\apache-zookeeper-3.6.4-bin\\data
dataLogDir=D:\\xxx\\apache-zookeeper-3.6.4-bin\\log
3.配置windows系统环境变量(可以百度)
1).新建zookeeper系统变量
变量名:ZOOKEEP