标签:mirrors zookeeper start bin ice conf dir config server
1.下载http://mirrors.hust.edu.cn/apache/zookeeper/
2.解压放到/usr/bin
3.打开/usr/bin/zookeeper,
mkdir data
cd conf
mv zoo_sample.cfg zoo.cfg
vi zoo.cfg :dataDir=/usr/bin/zookeeper/data
cd ..
cd bin
./zkServer.sh start
./zkServer.sh status
关闭:./zkServer.sh stop
注意防火墙要关闭:service iptables stop
永久关闭防火墙命令:chkconfig iptables off
如果启动了zookeeper,看状态没有启动,就到我们创建的data目录吧.pid那个文件删掉
标签:mirrors zookeeper start bin ice conf dir config server
原文地址:http://www.cnblogs.com/yintingting/p/7169585.html