官方網站
http://zookeeper.apache.org/
簡介
ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. All of these kinds of services are used in some form or another by distributed applications. Each time they are implemented there is a lot of work that goes into fixing the bugs and race conditions that are inevitable. Because of the difficulty of implementing these kinds of services, applications initially usually skimp on them ,which make them brittle in the presence of change and difficult to manage. Even when done correctly, different implementations of these services lead to management complexity when the applications are deployed.
安裝
wget http://apache.cdpa.nsysu.edu.tw/zookeeper/zookeeper-3.3.5/zookeeper-3.3.5.tar.gz tar zxvf zookeeper-3.3.5.tar.gz -C /usr/local mkdir -p /var/lib/zookeeper echo tickTime=2000 > /usr/local/zookeeper-3.3.5/conf/zoo.cfg echo dataDir=/var/lib/zookeeper >> /usr/local/zookeeper-3.3.5/conf/zoo.cfg echo clientPort=2181 >> /usr/local/zookeeper-3.3.5/conf/zoo.cfg cat /usr/local/zookeeper-3.3.5/conf/zoo.cfg |
簡要參數提示
/usr/local/zookeeper-3.3.5/bin/zkServer.sh |
結果
[root@localhost ~]# /usr/local/zookeeper-3.3.5/bin/zkServer.sh JMX enabled by default Using config: /usr/local/zookeeper-3.3.5/bin/../conf/zoo.cfg Usage: /usr/local/zookeeper-3.3.5/bin/zkServer.sh {start|start-foreground|stop|restart|status|upgrade|print-cmd} |
啟動
/usr/local/zookeeper-3.3.5/bin/zkServer.sh start |
停止
/usr/local/zookeeper-3.3.5/bin/zkServer.sh stop |
有關程式開發部分請看
http://zookeeper.apache.org/doc/trunk/zookeeperStarted.html#sc_InstallingSingleMode
(完)
相關
[研究] Apache Zookeeper 3.4.6 安裝 (CentOS 7.0 x86_64)
http://shaurong.blogspot.com/2014/08/apache-zookeeper-346-centos-70-x8664.html
[研究] Apache Zookeeper 3.3.5 安裝 (CentOS 6.4 x64)
http://shaurong.blogspot.com/2013/07/apache-zookeeper-345.html
沒有留言:
張貼留言