常用命令
bash
# 启动/关闭nameserver服务
nohup sh /opt/rocketmq-all-5.1.4-bin-release/bin/mqnamesrv &
sh /opt/rocketmq-all-5.1.0-bin-release/bin/mqshutdown namesrv
# 启动broker服务
nohup sh /opt/rocketmq-all-5.1.0-bin-release/bin/mqbroker -c /opt/rocketmq-all-5.1.0-bin-release/conf/broker.conf -n localhost:9876 autoCreateTopicEnable=true &
# 关闭broker服务
sh /opt/rocketmq-all-5.1.0-bin-release/bin/mqshutdown broker
# 查看 broker 的配置参数
sh /opt/rocketmq-all-5.1.4-bin-release/bin/mqbroker -m
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
注意,rocketmq:
- 启动时,先启动nameserver服务,再启动broker服务。
- 关闭时,先关闭broker服务,再关闭nameserver服务。
b站码哥rocketmq