解压安装包
配置文件
cp zoo_sample.cfg zoo.cfg
vim zoo.cfg
dataDir=/zookeeper initLimit=10 syncLimit=5 server.1=root1:2888:3888 server.2=root2:2888:3888 server.3=root3:2888:3888
生成myid(每个机器一个id)
vim /zookeeper/myid
1
export ZOOKEEPER_HOME=/zookeeper/apache-zookeeper-3.6.3-bin export PATH=$PATH:$ZOOKEEPER_HOME/bin
source /etc/profile
zkServer.sh start
zkServer.sh status
zkServer.sh stop
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)