kafka
优质
小牛编辑
126浏览
2023-12-01
kafka
启动一个 kafka 环境,包括 zookeeper 和 kakka。
启动
$ docker-compose up -dCreating kafka_zookeeper_1Creating kafka_kafka_1$
扩展到多个
$ docker-compose scale kafka=3Creating and starting kafka_kafka_2 ... doneCreating and starting kafka_kafka_3 ... done$
停止
$ docker-compose stopStopping kafka_kafka_3 ... doneStopping kafka_kafka_2 ... doneStopping kafka_kafka_1 ... doneStopping kafka_zookeeper_1 ... done$