Docker安装Zookeeper、RocketMQ-安装RocketMQ

docker pull apache/rocketmq:4.9.7

启动顺序mqnamesrv——》mqbroker

docker run -d -p 9876:9876 -m 256m --restart=always --name rmqnamesrv apache/rocketmq:4.9.7 sh mqnamesrv

mqbroker中的rmqnamesrv、namesrv、9876端口号和上面的保持一致

docker run -d -p 10909:10909 -p 10911:10911 --restart=always --name rmqbroker --link rmqnamesrv:namesrv -e "NAMESRV_ADDR=namesrv:9876" -e "JAVA_OPT_EXT=-server -Xmn128m -Xms256m -Xmx256m" apache/rocketmq:4.9.7 sh mqbroker

安装RocketMQ Dashboard

docker pull apacherocketmq/rocketmq-dashboard:latest

启动后访问localhost:9877

docker run -d -t -p 9877:8080 -m 256m --restart=always --name rocketmq-dashboard -e "JAVA_OPTS=-Drocketmq.namesrv.addr=127.0.0.1:9876" apacherocketmq/rocketmq-dashboard:latest
上一篇:「Qt Widget中文示例指南」如何实现一个滑动条(二)


下一篇:Android ListView