下载地址
http://kafka.apache.org/downloads.html
注意不要下载错了source包就可以了
解压包,cd进入文件夹
执行命令
bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic notice
bin/kafka-topics.sh --list --zookeeper localhost:2181