常用RocketMq命令

一. 案例

1.查看所有订阅组:sh mqadmin consumerProgress -n 172.16.10.226:9876   



2.查看某一具体订阅组的明细:sh mqadmin consumerProgress -n 172.16.10.226:9876 -g mq_consumer_group


3.查看所有topic列表: sh mqadmin topicList -n 172.16.10.226:9876


4.创建topic:sh mqadmin updateTopic –n 10.45.47.168 –c DefaultCluster –t ZTEExample     注:ZTEExample是topic名字,DefaultCluster 是集群名


 二.温馨提示

    更多命令请进入 /RocketMQ/bin ,在bin目录下有个mqadmin 脚本 。查看有哪些命令: sh mqadmin  。查看某一具体命令的使用:sh mqadmin help 命令名称 。例如:sh mqadmin help topicList 



发布了4 篇原创文章 · 获赞 6 · 访问量 1205

猜你喜欢

转载自blog.csdn.net/qq_33210715/article/details/80419404