原创

mac brew install kafka

安装brew

/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"

安装kafka命令

brew install kafka

启动zookeeper

cd /opt/homebrew/opt/kafka/bin

zookeeper-server-start /opt/homebrew/etc/kafka/zookeeper.properties

启动kafka

1 service启动

brew services restart kafka

2 命令启动

cd /opt/homebrew/opt/kafka/bin

kafka-server-start /opt/homebrew/etc/kafka/server.properties

参考

Mac安装Homebrew的正确姿势 - 简书

https://www.jianshu.com/p/e0471aa6672d?utm_campaign=hugo

Mac kafka安装 - 简书
https://www.jianshu.com/p/763116676040

正文到此结束