kafka环境搭建 for mac
对应qq群号:616961231
在之前的文章中, 有学习能力和兴趣爱好的同学,自己动手维护测试环境,丰衣足食是最好的办法,今天我们来讲讲kafka在mac上的安装
安装之前简单讲讲几个名词:
producer:
消息生产者,发布消息到 kafka 集群的终端或服务
broker:
kafka 集群中包含的服务器
consumer:
从 kafka 集群中消费消息的终端或服务
1. 安装kafka, 安装过程会自带安装zookeeper,下面来看安装步骤,
brew install kafka
louie-mac:~ louiezhou$ brew install kafka
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/cask and homebrew/core).
==> New Formulae
fx
==> Updated Formulae
abyss just
amqp-cpp knot
annie kotlin
ark libcec
ballerina librsvg
bitrise libuv
checkbashisms mariadb@10.2
chronograf mongodb
circleci openapi-generator
clang-format opus-tools
diffoscope passenger
elasticsearch phpunit
git-archive-all pipenv
git-subrepo poppler
gradio pulumi
grafana pumba
gwyddion pygobject3
hapi-fhir-cli selenium-server-standalone
jenkins sonarqube
jfrog-cli-go terragrunt
jhipster weaver
juju yamllint
==> Renamed Formulae
mat -> mat2
==> Installing dependencies for kafka: zookeeper
==> Installing kafka dependency: zookeeper
==> Downloading https://homebrew.bintray.com/bottles/zookeeper-3.4.13.high_sierr
######################################################################## 100.0%
==> Pouring zookeeper-3.4.13.high_sierra.bottle.tar.gz
==> Caveats
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
==> Summary