Zookeeper安装,Linux系统上
1. 安装zookeeper
1.1. 上传zookeeper
1.2. 安装zookeeper的前提条件
必须配置好jdk环境,因为zookeeper是使用java编写的.
1.3. 安装
# mkdir /usr/local/src/zookeeper
# tar -zxvf zookeeper-3.4.6.tar.gz -C /usr/local/src/zookeeper/
# cd /usr/local/src/zookeeper/zookeeper-3.4.6
# mkdir data
# cd /usr/local/src/zookeeper/zookeeper-3.4.6/conf
# mv zoo_sample.cfg zoo.cfg
# vim zoo.cfg
1.4. Zookeeper命令
# cd /usr/local/src/zookeeper/zookeeper-3.4.6/bin
# ./zkServer.sh start
{start|start-foreground|stop|restart|status|upgrade|print-cmd}
1.5. Zookeeper开放端口号 2181
停止防火墙:
#service iptables stop
把防火墙设置为开启不启动:
# chkconfig iptables off
1. 安装zookeeper
1.1. 上传zookeeper
1.2. 安装zookeeper的前提条件
必须配置好jdk环境,因为zookeeper是使用java编写的.
1.3. 安装
# mkdir /usr/local/src/zookeeper
# tar -zxvf zookeeper-3.4.6.tar.gz -C /usr/local/src/zookeeper/
# cd /usr/local/src/zookeeper/zookeeper-3.4.6
# mkdir data
# cd /usr/local/src/zookeeper/zookeeper-3.4.6/conf
# mv zoo_sample.cfg zoo.cfg
# vim zoo.cfg
1.4. Zookeeper命令
# cd /usr/local/src/zookeeper/zookeeper-3.4.6/bin
# ./zkServer.sh start
{start|start-foreground|stop|restart|status|upgrade|print-cmd}
1.5. Zookeeper开放端口号 2181
停止防火墙:
#service iptables stop
把防火墙设置为开启不启动:
# chkconfig iptables off