在大数据开发里Zookeeper有什么用?多台服务器集群的安装与配置( 八 )

tar -zxvf apache-zookeeper-3.5.6-bin.tar.gz

mkdir /home/hadoop/server

mkdir -p /home/hadoop/data/zkdata

mkdir -p /home/hadoop/log/zklog

mv apache-zookeeper-3.5.6-bin/ /home/hadoop/server/

ln -sf /home/hadoop/server/apache-zookeeper-3.5.6-bin/  /home/hadoop/zookeeper

chown -R hadoop:hadoop /home/hadoop/*

修改环境变量

vi /etc/profile

文件底部添加以下内容

export ZOOKEEPER_HOME=\"/home/hadoop/zookeeper\"

export PATH=$ZOOKEEPER_HOME/bin:$PATH

推荐阅读