docker安装pulsar

启动容器:

DOCKER_HOME=/home/docker
docker run -it \
    -p 6650:6650 \
    -p 8080:8080 \
    -v $DOCKER_HOME/pulsar/data:/pulsar/data \
    apachepulsar/pulsar:latest \
    bin/pulsar standalone;

启动控制台:

docker run --name pulsar-dashboard -dit -p 80:80 -e SERVICE_URL=http://pulsar:8080 --link pulsar apachepulsar/pulsar-dashboard

测试:

docker exec -it pulsar bash bin/pulsar-client produce my-topic --messages "hello-pulsar"
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享