长风1959

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
# cd /opt/
# wget https://archive.apache.org/dist/zookeeper/zookeeper-3.5.5/apache-zookeeper-3.5.5-bin.tar.gz
# tar zxf apache-zookeeper-3.5.5-bin.tar.gz
# mv apache-zookeeper-3.5.5-bin zookeeper
# mkdir /opt/zookeeper/{dataDir,dataLogDir}
# cd /opt/zookeeper/conf/
# cp zoo_sample.cfg zoo.cfg 
# vim zoo.cfg 
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/opt/zookeeper/dataDir
dataLogDir=/opt/zookeeper/dataLogDir
clientPort=2181
# vim /etc/profile.d/zookeeper.sh
ZOOKEEPER_HOME=/opt/zookeeper
PATH=$PATH:$ZOOKEEPER_HOME/bin
export PATH
# source /etc/profile
# zkServer.sh start
ZooKeeper JMX enabled by default
Using config: /opt/zookeeper/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
# netstat -antulp|grep -i listen

 

posted on 2022-07-29 17:36  长风1959  阅读(117)  评论(0编辑  收藏  举报