zookeeper安装简要步骤

vi zoo.cfg
1.dataDir=/var/zookeeper
2.server.1=zoo1:2888:3888
server.2=zoo2:2888:3888
server.3=zoo3:2888:3888
mkdir /var/zookeeper
vi myid
vi /etc/profile
export JAVA_HOME=/usr/java/jdk1.7.0_67
export ZOOKEEPER_HOME=/home/tools/zookeeper-3.4.6
export PATH=$PATH:$JAVA_HOME/bin:$ZOOKEEPER_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

posted @ 2017-12-27 21:14  高登军  阅读(148)  评论(0编辑  收藏  举报