赞
踩
cmak是kafka集群可视化管理页面
docker pull bitnami/zookeeper
docker pull bitnami/kafka:2.8.1
docker pull vimagick/cmak
docker run -itd --name zookeeper \
--restart=always \
-p 2181:2181 \
-e ALLOW_ANONYMOUS_LOGIN=yes \
bitnami/zookeeper:latest
查看zookeeper容器日志(可省略)
docker logs -f zookeeper
下面配置中IP地址192.168.0.10需要改为服务器的IP地址
docker run -d --name kafka -p 9092:9092 --restart=always \
-e KAFKA_HEAP_OPTS="-Xmx256m -Xms64m" \
-e KAFKA_BROKER_ID=0 \
-e ALLOW_PLAINTEXT_LISTENER=yes \
-e KAFKA_CFG_ZOOKEEPER_CONNECT=192.168.0.10:2181 \
-e KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://192.168.0.10:9092 \
-e TZ="Asia/Shanghai" bitnami/kafka:2.8.1
查看kafka容器日志(可省略)
docker logs -f kafka
docker run -d --name cmak \
--restart=always \
-p 9000:9000 \
-e ZK_HOSTS="192.168.0.10:2181" \
vimagick/cmak:latest
查看CMAK容器日志(可省略)
docker logs -f cmak
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。