zookeeper-单机安装
1.下载http://mirrors.hust.edu.cn/apache/zookeeper/
2.解压放到/usr/bin:
tar -xf zookeeper-3.4.10.tar
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
查看命令:./zkServer.sh
启动客户端:./zkCli.sh -server ip:port