mqadmin命令
关键字
- rocketmq-4.6.0
- mqadmin
clusterList 查看集群列表
默认集群名称:DefaultCluster
mqadmin clusterList -n 127.0.0.1:9876
updateTopic 创建或更新主题
mqadmin updateTopic -c DefaultCluster -n 127.0.0.1:9876 -t TopicTest
topicList 查看主题列表
mqadmin topicList -n 127.0.0.1:9876
topicStatus 查看主题状态
mqadmin topicStatus -t TopicTest -n 127.0.0.1:9876
topicRoute 查看主题路由信息
mqadmin topicRoute -t TopicTest -n 127.0.0.1:9876
deleteTopic 删除主题
mqadmin deleteTopic -t TopicTest -n 127.0.0.1:9876 -c DefaultCluster
printMsg 打印消息
mqadmin printMsg -t TopicTest -n 127.0.0.1:9876
参考:
http://rocketmq.apache.org/docs/cli-admin-tool/