赞
踩
/usr/local/src
tar -xzvf /usr/local/src/*.tar.gz /usr/local/zookeeper/
vim /etc/profile
export ZOOKEEPER_HOME=/usr/local/zookeeper/
export PATH=${ZOOKEEPER_HOME}/bin:${PATH}
source /etc/profile
cd /usr/local/zookeeper/conf
cp zoo_sample.cfg zoo.cfg
vi zoo.cfg
mkdir /tmp/zookeeper/log
/usr/local/zookeeper/bin/zkServer.sh start
/usr/local/zookeeper/bin/zkServer.sh status
/usr/local/zookeeper/bin/zkCli.sh -server 127.0.0.1:2181
create /test hello
get /test
set /test hello2
delete /test
quit
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。