docker 部署 rocketmq
作者:互联网
docker 部署 rocketmq
启动nameserver命令
docker run -d -p 9876:9876 --name rmqserver foxiswho/rocketmq:server-4.5.1
启动broker命令
docker run -d -p 10911:10911 -p 10909:10909\
--name rmqbroker --link rmqserver:namesrv\
-e "NAMESRV_ADDR=namesrv:9876" -e "JAVA_OPTS=-Duser.home=/opt"\
-e "JAVA_OPT_EXT=-server -Xms128m -Xmx128m"\
foxiswho/rocketmq:broker-4.5.1
通过 docker exec -it id 进去rmqbroker 容器内部 修改加上 /etc/rocketmq/broker.conf
启动rocketmq-console 命令
docker run -d --name rmqconsole -p 8180:8080 --link rmqserver:namesrv\
-e "JAVA_OPTS=-Drocketmq.namesrv.addr=namesrv:9876\
-Dcom.rocketmq.sendMessageWithVIPChannel=false"\
-t styletang/rocketmq-console-ng
标签:run,部署,--,namesrv,9876,docker,rocketmq 来源: https://blog.csdn.net/qq_43548590/article/details/117219211