zoo.cfg配置文件如下:
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/data/zookeeper
clientPort=2181
metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider
metricsProvider.httpHost=0.0.0.0
metricsProvider.httpPort=7000
metricsProvider.exportJvmInfo=true
server.1=xx1:2888:3888
server.2=xx2:2888:3888
server.3=xx3:2888:3888
###############
对应的服务器写入1,2,3
/data/zookeeper/myid 写入1
标签:0.0,2888,zookeeper,写入,data,安装 From: https://www.cnblogs.com/52shaidan/p/17293045.html