标签 zookeeper 下的文章

1.1 下载,解压

$ wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.9/zookeeper-3.4.9.tar.gz
$ tar -zxvf zookeeper-3.4.9.tar.gz -C /usr/local/zookeeper-3.4.9

1.2 启动

默认就是单机模式,

$ cp conf/zoo_sample.cfg conf/zoo.cfg 拷贝配置文件保留原有的
$ ./bin/zkServer.sh start

1.3 使用java 客户端连接ZooKeeper

$ ./bin/zkCli.sh -server 127.0.0.1:2181

然后就可以使用了,实际上谈不上安装,只是解压,启动而已另外一篇文章中需要zookeeper作为注册中心的

- 阅读剩余部分 -