Linux安装Zookeeper具体步骤:
一、Zookeeper下载
[root@localhost 下载]# wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.10/zookeeper-3.4.10.tar.gz 已发出 HTTP 请求,正在等待回应... 200 OK 长度:11833706 (11M) [application/octet-stream] 正在保存至: “zookeeper-3.4.10.tar.gz” 100%[======================================================================================================================================================================================>] 11,833,706 171KB/s 用时 68s - 已保存 “zookeeper-3.4.10.tar.gz” [11833706/11833706])
二、解压
[root@localhost deploy]# tar -zxvf zookeeper-3.4.10.tar.gz
三、进入到conf目录修改zoo_samle.cfg为zoo.cfg
[root@localhost conf]# mv zoo_sample.cfg zoo.cfg
四、编辑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=../data dataLogDir=../log # the port at which the clients will connect clientPort=2181 server.1=192.168.147.128:3888
五、启动
进入bin目录,执行:./zkServer.sh start
总结
以上就是
为各位朋友分享的 相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多 等着你!