- 查看主题列表
#windows .\mqadmin topicList –n localhost:9876 #linux sh mqadmin topicList –n localhost:9876
- 查看配置信息
#windows .\mqbroker -n localhost:9876 -p #linux sh mqbroker -n localhost:9876 -p
- 查看集群状态
#windows .\mqadmin clusterList -n localhost:9876 #linux sh mqadmin clusterList -n localhost:9876
- 查看topic路由状态
#windows .\mqadmin topicRoute –n localhost:9876 -t your-topic-name #linux sh mqadmin topicRoute –n localhost:9876 -t your-topic-name
- 启动、关闭nameserver和broker
#windows .\mqnamesrv .\mqbroker –n localhost:9876 #linux 没有开启自动创建topic可加参数启动 nohup sh bin/mqnamesrv & nohup sh bin/mqbroker -n localhost:9876 & nohup sh mqbroker -n localhost:9876 autoCreateTopicEnable=true & sh bin/mqshutdown broker sh bin/mqshutdown namesrv
- 测试工具使用
#启动消费者 set NAMESRV_ADDR=localhost:9876 org.a #启动生产者 set NAMESRV_ADDR=localhost:9876 org.a
over