- 修改zk home/conf下的zoo_sample.cfg,重新命名为zoo.cfg。
- 修改配置为:
dataDir=/root/data/zookeeper-data
clientPort=2181
initLimit=5
syncLimit=2
server.1=192.168.99.215:2888:3888
- 进入bin目录,执行:
./zkServer.sh start
dataDir=/root/data/zookeeper-data
clientPort=2181
initLimit=5
syncLimit=2
server.1=192.168.99.215:2888:3888
./zkServer.sh start