1.wget https://www.apache.org/dyn/closer.cgi?path=/kafka/1.0.0/kafka_2.11-1.0.0.tgz
2.这里我用了两台机器,在两台机器下分别解压,放在自己想要的安装目录下(假设zookeeper集群搭好,可参考http://blog.csdn.net/qq_22222499/article/details/64132859)
3.打开config中的server.properties文件
找到zookeeper那个地方,修改zookeeper集群
zookeeper.connect=centos-1:2181,centos-2:2181,centos-3:2181
broker.id=0(机器1,机器2上就是1)
4.在两台机器上分别执行./bin/kafka-server-start.sh config/server.properties & 日志正常的话,两台机器启动成功