1芋肠、dataDir乎芳、dataLogDir
# the directory where the snapshot is stored
# data路徑,這個(gè)路徑要事先創(chuàng)建帖池,zookeeper的持久化都存儲(chǔ)在這兩個(gè)目錄里
dataDir=/tas100/tas100i/kafka/zookeeper
dataLogDir=/tas100/tas100i/kafka/log/zookeeper
2奈惑、clientPort
## the port at which the clients will connect
# 客戶端端口 默認(rèn)2181
clientPort=2181
3、maxClientCnxns
# disable the per-ip limit on the number of connections since this is a non-production config
#最大鏈接數(shù)睡汹,0表示不限制肴甸,默認(rèn)為0
maxClientCnxns=100
4、tickTime
#時(shí)間定量
tickTime=2000
5帮孔、syncLimit
syncLimit=5
#表示leader于flower的心跳時(shí)間是5個(gè)tickTime
6雷滋、myid
#去dataDir中,放置一個(gè)myid的文件文兢,這個(gè)文件就一個(gè)數(shù)字晤斩,標(biāo)志zookeeper服務(wù)