Mac下安装kafka
总阅读 次
文章目录
Mac下安装kafka
通过brew命令方式来安装
安装homebrew:略
通过Brew指令安装kafka
brew install kafkazookeeper安装后的路径为:/usr/local/Cellar/zookeeper/3.4.13
kafka安装后的路径为:/usr/local/Cellar/kafka/2.2.1 (版本根据安装版本确定)
启动kafka
==> zookeeper
To have launchd start zookeeper now and restart at login:
brew services start zookeeper
Or, if you don’t want/need a background service you can just run:
zkServer start
==> kafka
To have launchd start kafka now and restart at login:
brew services start kafka
Or, if you don’t want/need a background service you can just run:
zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties & kafka-server-start /usr/local/etc/kafka/server.properties