1)安装jdk环境
2)解压zookeeper
3)在zookeeper的当前目录创建data目录
4)进入conf目录,将zoo_sample.cfg改为zoo.cfg
5)编辑zoo.cfg,修改dataDir的路径:
dataDir=/developer/zookeeper-3.4.6/data
6)启动zookeeper:
./zkServer.sh start
7)查看启动状态:
./zkServer.sh status
1)安装jdk环境
2)解压zookeeper
3)在zookeeper的当前目录创建data目录
4)进入conf目录,将zoo_sample.cfg改为zoo.cfg
5)编辑zoo.cfg,修改dataDir的路径:
dataDir=/developer/zookeeper-3.4.6/data
6)启动zookeeper:
./zkServer.sh start
7)查看启动状态:
./zkServer.sh status