docker 安装rocketmq
Posted 溢性循环
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker 安装rocketmq相关的知识,希望对你有一定的参考价值。
安装docker环境
搜索rocketmq
docker search rocketmq
[root@localhost ~]# docker search rocketmq
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
rocketmqinc/rocketmq Image repository for Apache RocketMQ 40
foxiswho/rocketmq rocketmq 32
styletang/rocketmq-console-ng rocketmq-console-ng 30
apacherocketmq/rocketmq Docker Image for Apache RocketMQ 12
laoyumi/rocketmq 10 [OK]
rocketmqinc/rocketmq-broker Customized RocketMQ Broker Image for RocketM… 6
rocketmqinc/rocketmq-namesrv Customized RocketMQ Name Server Image for Ro… 5
xlxwhy/rocketmq alibaba\'s rocketmq 4
huanwei/rocketmq-broker 2
2019liurui/rocketmq-namesrv RocketMQ name service image for RocketMQ-Ope… 1
2019liurui/rocketmq-broker RocketMQ broker image for RocketMQ-Operator 1
apacherocketmq/rocketmq-nameserver Apache RocketMQ docker image for name server. 1
apacherocketmq/rocketmq-broker Apache RocketMQ docker image for broker. 1
pangliang/rocketmq-console-ng 1
apacherocketmq/rocketmq-console A newly designed RocketMQ\'s console using sp… 1
apacherocketmq/rocketmq-operator RocketMQ Operator is to manage RocketMQ serv… 1
coder4/rocketmq rocketmq 1 [OK]
rocketmqinc/rocketmq-operator The Kubernetes operator for RocketMQ 0
pengzu/rocketmq-console-ng web console for rocketmq ,this code is from … 0
chaiyd/rocketmq Apache RocketMQ™ is a unified messaging engi… 0
huanwei/rocketmq-broker-k8s 0
huanwei/rocketmq 0
2019liurui/rocketmq-operator Kubernetes Operator for RocketMQ ! 0
king019/rocketmq rocketmq 0
slpcat/rocketmq-console-ng 0
拉取镜像
docker pull rocketmqinc/rocketmq
启动rocketmq 挂载外部文件启动
启动nameserve
docker run -d -p 9876:9876 \\
-v $pwd/data/namesrv/logs:/root/logs \\
-v $pwd/data/namesrv/store:/root/store \\
--name rmqnamesrv \\
1318fbff3674 sh mqnamesrv
启动broker
docker run -d -p 10911:10911 \\
-p 10909:10909 \\
-v $pwd/data/broker/logs:/root/logs \\
-v $pwd/data/broker/store:/root/store \\
--name rmqbroker --link rmqnamesrv:namesrv \\
-e "NAMESRV_ADDR=namesrv:9876" \\
1318fbff3674 sh mqbroker \\
-c ../conf/broker.conf
修改broker.conf 文件 添加 配置项brokerIP1 = xxx.xxx.xxx.xxx。这里的ip地址指定为外网地址。
docker exex -it 容器id bash
cd ../conf
vi broker.conf
启动控制台
docker run -e "JAVA_OPTS=-Drocketmq.namesrv.addr=xxx.xxx.xxx.xxx:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false" -p 8080:8080 -t styletang/rocketmq-console-ng
访问 ip:8080
遇到的问题
(RocketMQ 控制台This date have\'t data)[https://blog.csdn.net/sawyerlan/article/details/104309824]
以上是关于docker 安装rocketmq的主要内容,如果未能解决你的问题,请参考以下文章
docker安装rocketmq 开通acl鉴权 rocketmq-dashboard