zookeeper3.5.8安装过程

zookeeper3.5.8安装过程


        1.下载 http://mirror.bit.edu.cn/apache/zookeeper/ 稳定版本
        操作系统:CentOS-8.1
        安装包:apache-zookeeper-3.5.8-bin.tar.gz
        java环境:jdk 1.8
        2.安装tar -zxvf apache-zookeeper-3.5.8-bin.tar.gz

      复制一份配置文件:cp 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.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
dataDir=/data/zkconfig/data
dataLogDir=/data/zkconfig/logs
# 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

版权声明:本文为p393975269原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。