Install Kafka
step 1. launch zookeeper in background
1 2 3 4 5
| docker run -d \ -p 2181:2181 \ --name zookeeper \ -m 100M --memory-swap 100M --cpus 0.1 \ zookeeper
|
step 2. launch kafka
1 2 3 4 5 6 7 8 9 10
| docker run -it --rm \ --link zookeeper:zookeeper \ --name=kafka \ -p 9092:9092 \ -m 200M --memory-swap=1024M \ 1144560553/kafka:test \ bin/kafka-server-start.sh config/server.properties \ --override zookeeper.connect=zookeeper:2181 \ --override listeners=PLAINTEXT://0.0.0.0:9092 \ --override advertised.listeners=PLAINTEXT://localhost:9092
|
Project In Github
https://github.com/fightinggg/kafka-docker
Project In Dockerhub
最后更新时间:
这里可以写作者留言,标签和 hexo 中所有变量及辅助函数等均可调用,示例:
<%- page.permalink.replace(/index\.html$/, '') %>