- 关闭服务
cd /usr/local/rocketmq/
sh bin/mqshutdown broker
The mqbroker(36695) is running...
Send shutdown request to mqbroker(36695) OK
sh bin/mqshutdown namesrv
The mqnamesrv(36664) is running...
Send shutdown request to mqnamesrv(36664) OK
rm -rf /root/store/ /root/logs/
- 重新启动 Name Server
nohup sh bin/mqnamesrv &
- 重新启动 Broker
nohup sh bin/mqbroker -n localhost:9876 &
- 或者使用指定配置运行 -c
nohup sh bin/mqbroker -n localhost:9876 -c ./conf/broker.conf &
tail -f ~/logs/rocketmqlogs/broker.log
The broker[%s, 172.30.30.233:10911] boot success...