rocketmq 命令示例

Posted fei33423

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了rocketmq 命令示例相关的知识,希望对你有一定的参考价值。

 

http://www.360doc.com/content/16/0111/17/1073512_527143896.shtml

http://www.cnblogs.com/marcotan/p/4256857.html

 

RocketMQ常用命令

 

二、根据msgId查询消息

1、文档:

 

指令

queryMsgById

类路径

com.alibaba.rocketmq.tools.command.message.QueryMsgByIdSubCommand

参数

是否必填

说明

-i

msgId

-h

打印帮助

-n

nameserve服务地址列表,格式ip:port;ip:port;...

举例

查询msgId= 0A2D2FA800002A9F0000000000000000的消息,nameserve地址为10.45.47.168:9876

sh mqadmin queryMsgById –n 10.45.47.168:9876 –i 0A2D2FA800002A9F0000000000000000

打印内容:

Topic:               ZTEExample

Tags:                [SimpleTest]

Keys:                [SimpleTest-1]

Queue ID:            0

Queue Offset:        0

CommitLog Offset:    0

Born Timestamp:      2014-02-26 14:49:10,875

Store Timestamp:     2014-02-26 14:48:44,840

Born Host:           10.45.46.229:4231

Store Host:          10.45.47.168:10911

System Flag:         0

Properties:          {TAGS=SimpleTest, KEYS=SimpleTest-1, WAIT=true}

Message Body Path:   /tmp/rocketmq/msgbodys/0A2D2FA800002A9F0000000000000000

 

以上是关于rocketmq 命令示例的主要内容,如果未能解决你的问题,请参考以下文章

rocketMQ的运行示例代码

RocketMq-简单示例

golang rocketmq消费示例

golang rocketmq消费示例

golang rocketmq消费示例

golang rocketmq消费示例