1. 启动namesrv和borker
sh /opt/alibaba-rocketmq/bin/runserver.sh com.alibaba.rocketmq.namesrv.NamesrvStartup & sh /opt/alibaba-rocketmq/bin/mqbroker -n "mq001.eunke.com:9876" -c /opt/alibaba-rocketmq/conf/2m-noslave/broker-a.properties &
关闭namesrv和borker服务:
sh bin/mqshutdown namesrv sh bin/mqshutdown broker
2. 查看某个topic的状态
sh bin/mqadmin topicStatus -n mq001.eunke.com:9876 -t message_push_topic
3. 查看某个消费组的消息堆积情况
sh bin/mqadmin consumerProgress -n mq001.eunke.com:9876 -g tms_sms_send_consumer
Diff 为消息堆积数, 为0说明没有消息堆积。