网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

ubuntu16.04系统中怎么安装zookeeper

这篇文章给大家介绍ubuntu16.04系统中怎么安装zookeeper,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。

创新互联专业为企业提供尉犁网站建设、尉犁做网站、尉犁网站设计、尉犁网站制作等企业网站建设、网页设计与制作、尉犁企业网站模板建站服务,十载尉犁做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。

zookeeper需要java,见https://my.oschina.net/u/914655/blog/3102583 

cd /app
wget http://mirror-hk.koddos.net/apache/zookeeper/zookeeper-3.5.5/apache-zookeeper-3.5.5-bin.tar.gz
tar zxvf apache-zookeeper-3.5.5-bin.tar.gz
mv apache-zookeeper-3.5.5-bin zookeeper
cp conf/zoo.sample.cfg conf/zoo.cfg
vim conf/zoo.cfg
mkdir data
vim data/myid
echo 1 > data/myid # 这个确保和下面的server.x后面的数字对应

vim /etc/hosts

# /etc/hosts
# 自定义Hosts
10.13.6.1     kafka-node1
10.13.6.2     kafka-node2
10.13.6.3     kafka-node3

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.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/app/zookeeper/data
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
maxClientCnxns=60

# 节点配置信息
server.1=kafka-node1:2888:3888
server.2=kafka-node2:2888:3888
server.3=kafka-node3:2888:3888

#server.A=B:C:D
# 其中 A 是一个数字,表示这个是第几号服务器;
# B 是这个服务器的 ip 地址;
# C 表示的是这个服务器与集群中的 Leader 服务器交换信息的端口;
# D 表示的是如果集群中的 Leader 服务器故障,需要一个端口来重新进行选举,选出一个新的 Leader,而这个端口就是#用来执行选举时服务器相互通信的端口。
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1

关于ubuntu16.04系统中怎么安装zookeeper就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。


文章名称:ubuntu16.04系统中怎么安装zookeeper
URL地址:http://bjjierui.cn/article/jjicgc.html

其他资讯