[root@itcast conf]# vim zoo.cfg
#
tickTime=2000
#
initLimit=10
#
syncLimit=5
dataDir=/root/zookeeper-3.4.6/data
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
~
~
~
~
~
~
~
~
~
~
~
~
~
"zoo.cfg" 25L, 618C 已写入
报的错
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /zoo2
网上说是配置文件的原因但我不知道错哪了