首页 > 其他分享 >MQ常用命令集合

MQ常用命令集合

时间:2023-07-04 11:56:07浏览次数:48  
标签:int mqadmin public 9876 MQ 常用命令 集合 static final

MQ常用命令集合

1、分配MQ
./mqadmin allocateMQ -n localhost:9876 -t tst-topic -i ipList
ipList 以逗号分隔

2、删除topic
./mqadmin deleteTopic -n localhost:9876 -t zto-example -c DefultCluster

3、获取topic的cluster
./mqadmin topicClusterList -n 192.168.1.x:9876 -t SCANRECORD

4、查看Topic列表信息
./mqadmin topicList -n localhost:9876

5、查看Topic路由信息
./mqadmin topicRoute -n 192.168.1.x:9876 -t SCANRECORD

6、查看topic状态
./mqadmin topicStatus -n 192.168.1.174:9876 -t SCANRECORD

7、更改Topic权限
./mqadmin updateTopicPerm -t SCANRECORD -p put -n 192.168.1.x:9876

8、创建/修改Topic
./mqadmin updateTopic -c DefaultCluster -n localhost:9876 -t threezto-test -r 12 -w 12


# 查看堆积
./mqadmin brokerConsumeStats -b 10.30.12.55:10911 -n 127.0.0.1:9876

# 查看所有消费进度
./mqadmin consumerProgress -n localhost:9876
# 查看具体消费者名字
./mqadmin consumerProgress -g comsumerName -n localhost:9876

RocketMq:响应码列表

package org.apache.rocketmq.common.protocol;

import org.apache.rocketmq.remoting.protocol.RemotingSysResponseCode;

public class ResponseCode extends RemotingSysResponseCode {

    public static final int FLUSH_DISK_TIMEOUT = 10;

    public static final int SLAVE_NOT_AVAILABLE = 11;

    public static final int FLUSH_SLAVE_TIMEOUT = 12;

    public static final int MESSAGE_ILLEGAL = 13;

    public static final int SERVICE_NOT_AVAILABLE = 14;

    public static final int VERSION_NOT_SUPPORTED = 15;

    public static final int NO_PERMISSION = 16;

    public static final int TOPIC_NOT_EXIST = 17;
    public static final int TOPIC_EXIST_ALREADY = 18;
    public static final int PULL_NOT_FOUND = 19;

    public static final int PULL_RETRY_IMMEDIATELY = 20;

    public static final int PULL_OFFSET_MOVED = 21;

    public static final int QUERY_NOT_FOUND = 22;

    public static final int SUBSCRIPTION_PARSE_FAILED = 23;

    public static final int SUBSCRIPTION_NOT_EXIST = 24;

    public static final int SUBSCRIPTION_NOT_LATEST = 25;

    public static final int SUBSCRIPTION_GROUP_NOT_EXIST = 26;

    public static final int FILTER_DATA_NOT_EXIST = 27;

    public static final int FILTER_DATA_NOT_LATEST = 28;

    public static final int TRANSACTION_SHOULD_COMMIT = 200;

    public static final int TRANSACTION_SHOULD_ROLLBACK = 201;

    public static final int TRANSACTION_STATE_UNKNOW = 202;

    public static final int TRANSACTION_STATE_GROUP_WRONG = 203;
    public static final int NO_BUYER_ID = 204;

    public static final int NOT_IN_CURRENT_UNIT = 205;

    public static final int CONSUMER_NOT_ONLINE = 206;

    public static final int CONSUME_MSG_TIMEOUT = 207;

    public static final int NO_MESSAGE = 208;

    public static final int UPDATE_AND_CREATE_ACL_CONFIG_FAILED = 209;

    public static final int DELETE_ACL_CONFIG_FAILED = 210;

    public static final int UPDATE_GLOBAL_WHITE_ADDRS_CONFIG_FAILED = 211;
}

标签:int,mqadmin,public,9876,MQ,常用命令,集合,static,final
From: https://www.cnblogs.com/hsyw/p/17525388.html

相关文章

  • mq消息分类
    根据用途分类命令类事件类数据类命令类有指定的接收者对于接收者,有明确他需要做什么事情事件类一般就是发生某个事件,另外加上业务单号的id+状态可能会导致接收方调用自己方的api,导致数据多次交互,建议用数据类数据类一版是发生某件事,然后把发生事件的结果带上,避......
  • git 开发常用命令
    git中的代码,整个的流程就是上图显示的那样,代码可能会经历最多4个地方会被推送到远程大致流程:clone克隆远程文件到本地=>通过编辑器编辑本地的代码(即在工作区)=>pull拉下远程的代码,可能有人提交代码到同分支=>add添加到暂存区=>commit提交到本地仓库=>push推送到......
  • 2023ACM暑假训练day 7-RMQ问题
    目录DAY7RMQ问题训练情况简介题DAY7RMQ问题训练地址:传送门训练情况简介2023-07-03星期一早上:下午:晚上:题题意:思路:......
  • 龙蜥7.9 rpm安装mqtt
    1、下载mqtt的rpm包,https://www.emqx.io/downloads?os=CentOS2、安装依赖,去http://rpmfind.net/下载openssl11和openssl11-libsopenssl11-1.1.1k-5.el7.x86_64.rpmopenssl11-libs-1.1.1k-5.el7.x86_64.rpm3、逐个安装lib、openssl11、emqx三个包,即可,后面的配置就和以前一样了......
  • Git常用命令
    Git常用命令gitinit在目录中创建新的Git仓库(初始化仓库)gitclone[url]拷贝Git远程仓库到本地gitadd.将文件提交到缓存区.表示所有文件gitcommit将暂存区的文件提交到本地仓库gitpush上传远程代码并合并gitstatus查看仓库当前的状态,显示有变更的文件......
  • Linux|常用命令|SSH远程执行Shell
    #bash/python命令语法#ssh语法同bash/python不同,避免混淆bashscript.shparams4scriptpythonscript.pyparams4scriptbash-c""bash-c''python-c''python-c""一行和多行只是写法不同打包成函数和文件没有本质区别注意Shell会解释输入,转译字符、变量生效推......
  • docker启动RabbitMQ以及常见问题解决
    docker启动MQ容器下载docker镜像dockersearchrabbitmqdockerpullrabbitmqdockerrun-d--hostnamemy-rabbit--namerabbit-p15672:15672-p5672:5672rabbitmq:latest启动容器后浏览器无法访问dockerexec-it3b124f0c9712/bin/bashrabbitmq-pluginsenab......
  • Docker CLI docker container inspect 常用命令
    Docker是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中,然后发布到任何流行的Linux或Windows操作系统的机器上,也可以实现虚拟化。Docker是内核虚拟化,不使用Hypervisor是不完全虚拟化,依赖内核的特性实现资源隔离。本文主要介绍DockerCLI中d......
  • Java官方笔记13集合
    StoringDataTheCollectionsFrameworkisthemostwidelyusedAPIoftheJDK.集合不是数据类型,它是JDK的API,可以用来存储数据等,相当于数据结构。theCollectionsFrameworkisasetofinterfacesthatmodelsdifferentwayofstoringdataindifferenttypesofco......
  • Mac常用命令
    1.Mac快捷键剪切:command+X 粘贴:command+V  复制:command+C(复制文件或文件夹路径:command+option+C)全选:command+A 撤销:command+Z 保存:command+S  移动到废纸篓:command+Delete查找:command+F 查找下一个:command+G 查找上一个:command+shift+G切换应用程序:command+T......