• 微信公众号:美女很有趣。 工作之余,放松一下,关注即送10G+美女照片!

RocketMQ安装使用

开发技术 开发技术 3天前 9次浏览

docker安装步骤

先创建rocketmq 的挂载数据卷的文件地址:

mkdir -p /home/mq/rocketMQ/data/namesrv/logs
mkdir -p /home/mq/rocketMQ/data/namesrv/store

运行rocketmq:
docker run -d -p 9876:9876 -v /home/mq/rocketMQ/data/namesrv/logs:/root/logs -v /home/mq/rocketMQ/data/namesrv/store:/root/store –name mqnamesrv -e “MAX_POSSIBLE_HEAP=100000000” docker.io/rocketmqinc/rocketmq sh mqnamesrv

先创建挂载数据卷的文件地址:

mkdir -p /home/mq/rocketMQ/data/broker/logs
mkdir -p /home/mq/rocketMQ/data/broker/store
mkdir -p /home/mq/rocketMQ/data/broker/conf/

运行
docker run -d -p 10911:10911 -p 10909:10909 -v /home/mq/rocketMQ/data/broker/logs:/root/logs -v /home/mq/rocketMQ/data/broker/store:/root/store -v /home/mq/rocketMQ/data/broker/conf/broker.conf:/opt/rocketmq-4.4.0/conf/broker.conf –name rmqbroker –link mqnamesrv:mqnamesrv -e “NAMESRV_ADDR=namesrv:9876” -e “MAX_POSSIBLE_HEAP=200000000” rocketmqinc/rocketmq:4.4.0 sh mqbroker -c /opt/rocketmq-4.4.0/conf/broker.conf

 查找ocketmq-console

docker search rocketmq-console

在pull下载ocketmq-console
docker pull styletang/rocketmq-console-ng

之后运行:
docker run -e “JAVA_OPTS=-Drocketmq.config.namesrvAddr=121.196.221.7:9876 -Drocketmq.config.isVIPChannel=false” -p 8024:8080 -t styletang/rocketmq-console-ng

之后的测试以及遇到问题可以看下面地址更加详细:

地址如下:https://blog.csdn.net/weixin_42458556/article/details/117774407


程序员灯塔
转载请注明原文链接:RocketMQ安装使用
喜欢 (0)