RocketMQ Topic相关命令

https://www.jianshu.com/p/84a6948f45cf

 

1、分配MQ

bin/mqadmin allocateMQ -n localhost:9876 -t tst-topic -i ipList

ipList 以逗号分隔

2、删除topic

bin/mqadmin deleteTopic -n localhost:9876 -t zto-example -c DefultCluster

3、获取topic的cluster

bin/mqadmin topicClusterList -n 192.168.1.x:9876 -t SCANRECORD

4、查看Topic列表信息

bin/mqadmin topicList -n localhost:9876

5、查看Topic路由信息

bin/mqadmin topicRoute -n 192.168.1.x:9876 -t SCANRECORD

6、查看topic状态

bin/mqadmin topicStatus -n 192.168.1.174:9876 -t SCANRECORD

7、更改Topic权限

bin/mqadmin updateTopicPerm -t SCANRECORD -p put -n 192.168.1.x:9876

8、创建/修改Topic

bin/mqadmin updateTopic -c DefaultCluster -n localhost:9876 -t threezto-test -r 12 -w 12

 

你可能感兴趣的:(Java,MiddleWare)