1.kafka安装(brew)
brew install kafka安装会依赖zookeeper。 注意:安装目录:/usr/local/Cellar/kafka/0.10.2.0
2.安装位置
/usr/local/etc/kafka/server.properties/usr/local/etc/kafka/zookeeper.properties
3.启动
(1)zk启动
zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties &
(2)kafka启动
kafka-server-start /usr/local/etc/kafka/server.properties &
mac版本kafka安装: