[root@ecs ~]# tar -zxvf kafka_2.12-2.6.0.tgz [root@ecs ~]# mv kafka_2.12-2.6.0 /opt [root@ecs ~]# cd /opt/kafka_2.12-2.6.0/conifg [root@ecs config]# vim zookeeper.properties
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
dataDir=/data/zookeeper kfk data # the port at which the clients will connect clientPort=2181 # disable the per-ip limit on the number of connections since this is a non-production config maxClientCnxns=0 maxClientCnxns=0 tickTime=2000 initLiimit=10 svncLimit=5 # Disable the adminserver by default to avoid port conflicts. # Set the port to something non-conflicting if choosing to enable this admin.enableServer=false # admin.serverPort=8080