1. # The number of milliseconds of each tick
    2. tickTime=2000
    3. # The number of ticks that the initial
    4. # synchronization phase can take
    5. initLimit=10
    6. # The number of ticks that can pass between
    7. # sending a request and getting an acknowledgement
    8. syncLimit=5
    9. # the directory where the snapshot is stored.
    10. # do not use /tmp for storage, /tmp here is just
    11. # example sakes.
    12. dataDir=/opt/apps/zookeeper/zkData
    13. # the port at which the clients will connect
    14. clientPort=2181
    15. # the maximum number of client connections.
    16. # increase this if you need to handle more clients
    17. #maxClientCnxns=60
    18. #
    19. # Be sure to read the maintenance section of the
    20. # administrator guide before turning on autopurge.
    21. #
    22. # http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
    23. #
    24. # The number of snapshots to retain in dataDir
    25. #autopurge.snapRetainCount=3
    26. # Purge task interval in hours
    27. # Set to "0" to disable auto purge feature
    28. #autopurge.purgeInterval=1
    29. server.1=taizhou101:2888:3888
    30. server.2=taizhou102:2888:3888
    31. server.3=taizhou103:2888:3888
    32. # 保存3个快照,3个日志文件
    33. autopurge.snapRetainCount=3
    34. # 间隔1个小时执行一次清理
    35. autopurge.purgeInterval=1
    36. # Will not attempt to authenticate using SASL (unknown error)
    37. zookeeper.client.sasl=false