rockermq 单机部署排坑
mq相关
- 启动/停止nameserver
nohup sh /opt/module/rocketmq-all-5.1.4-bin-release/bin/mqnamesrv &
/opt/module/rocketmq-all-5.1.4-bin-release/bin/mqshutdown namesrv
- 启动/停止broker
nohup sh /opt/module/rocketmq-all-5.1.4-bin-release/bin/mqbroker -n localhost:9876 -pc /opt/module/rocketmq-all-5.1.4-bin-release/conf/rmq-proxy.json -c /opt/module/rocketmq-all-5.1.4-bin-release/conf/broker.conf --enable-proxy &
/opt/module/rocketmq-all-5.1.4-bin-release/bin/mqshutdown broker
- 启动dashboard
docker run -d -e "JAVA_OPTS=-Drocketmq.namesrv.addr=172.17.0.1:9876" -p 8080:8080 -t apacherocketmq/rocketmq-dashboard:latest
dashboard 相关
1.proxy和broker
按照https://blog.csdn.net/Cooder_SXK/article/details/132482516进行修改proxy端口
否则dashboard和proxy均占用8080导致冲突
启动broker时,使用 -pc
指定proxy配置文件(配置端口号),使用-c
指定broker配置文件(配置namesrvAddr=xx.xx.xx.xx)
2. dashboard无法连接
如果dashboard使用docker镜像安装,请将连接端口修改为172.17.0.1:9876