RocketMq消息队列
作者:互联网
RocketMq消息队列
本地安装目录
#安装目录
~/work/rocketmq-all-4.8.0-bin-release/bin
#启动namesrv bash
nohup sh mqnamesrv &
#查看日志
tail -f ~/logs/rocketmqlogs/namesrv.log
#启动mqbroker
nohup sh mqbroker -n localhost:9876 autoCreateTopicEnable=true &
#查看日志
tail -f ~/logs/rocketmqlogs/broker.log
#控制台
控制台
https://github.com/apache/rocketmq-externals
#下载控制台git代码后本地启动
http://localhost:8080/#/
#修改application.properties
rocketmq.config.namesrvAddr=localhost:9876
## 启动时会报错,本地连接不上,所以要加上启动国参数
## 在idea上配置program arguments
java -jar rocketmq-console-ng-1.0.1.jar --rocketmq.config.namesrvAddr=localhost:9876
创建Topic
java
标签:RocketMq,logs,启动,队列,消息,9876,控制台,rocketmq,localhost 来源: https://blog.csdn.net/u010721315/article/details/112063011