1
回答
windows下安装zookeeper问题
华为云数据库免费试用   

新建好zoo.cfg文件后,启动zkserver.cmd一闪而过???有人知道这是怎么回事吗?

# 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 anacknowledgement

syncLimit=5

# the directory where the snapshot isstored.  //镜像数据位置

dataDir=D:\\zookeeper\\data

#日志位置

dataLogDir=D:\\zookeeper\\logs

# the port at which the clients willconnect  客户端连接的端口

clientPort=2181




举报
youbaiOSC
发帖于3年前 1回/778阅
共有1个答案 最后回答: 3年前
# 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=D:/share/zookeeper-3.4.6/data/tmp/zookeeper
# 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
#
# 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
这是我的配置文件,一闪而过,自己进CMD 去到zookeeper目录下面去运行命令看看,估计有可能是是JDK版本问题
顶部