Linux下安装Zookeeper
来源:互联网 发布:vscode js代码高亮 编辑:程序博客网 时间:2024/05/16 13:38
一、Zookeeper下载
[root@localhost home]# wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz --2016-01-15 23:15:57-- http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz 正在解析主机 mirror.bit.edu.cn (mirror.bit.edu.cn)... 114.247.56.117 正在连接 mirror.bit.edu.cn (mirror.bit.edu.cn)|114.247.56.117|:80... 已连接。 已发出 HTTP 请求,正在等待回应... 200 OK 长度:11833706 (11M) [application/octet-stream] 正在保存至: “zookeeper-3.3.6.tar.gz” 100%[======================================================================================================================================================================================>] 11,833,706 171KB/s 用时 68s 2016-01-15 23:17:07 (170 KB/s) - 已保存 “zookeeper-3.3.6.tar.gz” [11833706/11833706])
二、解压[root@localhost home]# tar -zxvf zookeeper-3.3.6.tar.gz
三、进入到conf目录
[root@localhost home]# cd zookeeper-3.3.6/conf
四、拷贝zoo_samle.cfg为zoo.cfg
[root@localhost conf]# cp zoo_sample.cfg zoo.cfg
五、编辑zoo.cfg文件
[root@localhost conf]# vi zoo.cfg修改为:
# The number of milliseconds of each tick tickTime=2000 # The number of ticks that the initial # synchronization phase can take initLimit=10 # The number of ticks that can pass between # sending a request and getting an acknowledgement syncLimit=5 # the directory where the snapshot is stored. dataDir=/usr/zookeeper dataLogDir=/usr/zookeeper/log # the port at which the clients will connect clientPort=2181
六、设置环境变量
[root@localhost conf]# export ZOOKEEPER_INSTALL=/home/zookeeper-3.3.6 [root@localhost conf]# export PATH=$PATH:$ZOOKEEPER_INSTALL/bin
七、启动
[root@localhost bin]# ./zkServer.sh start JMX enabled by default Using config: /opt/deploy/zookeeper-3.3.6/bin/../conf/zoo.cfg Starting zookeeper ... STARTED [root@localhost bin]# jps4721 QuorumPeerMain10332 Jps启动成功!
八、测试zookeeper
[root@localhost bin]# ./zkCli.sh
阅读全文
0 0
- Linux下安装zookeeper
- Linux下安装Zookeeper
- linux下安装zookeeper
- Linux下安装Zookeeper
- Linux下安装Zookeeper
- Linux下安装Zookeeper
- Linux下安装zookeeper
- Linux下安装zookeeper
- linux下安装zookeeper
- Linux下安装Zookeeper
- Linux下安装Zookeeper
- linux下zookeeper安装
- Linux下安装Zookeeper
- linux下安装zookeeper
- Linux下安装Zookeeper
- Linux下安装Zookeeper
- linux下安装zookeeper
- Linux环境下安装Zookeeper
- bzoj1537
- Struts2_动态方法调用和使用通配符定义action
- UESTC 1595 老司机的毒奶 贪心+二叉树+优先队列
- Android-Android 的消息机制
- java反射浅析
- Linux下安装Zookeeper
- docker 常用命令
- tigase使用message-archiving组件进行消息存储,版本7.2.0-SNAPSHOT
- egg-multipart 中代码的分析(header)
- 线性回归、梯度下降算法与 tensorflow
- Cornerstone 3 添加外部diff工具
- Python: PS 滤镜--波浪特效
- iOS单个应用程序的最大可用内存是多少?
- java InputStream读取不到数据