JAVA全系列 教程
3762个小节阅读:7089k
目录
C语言快速入门
JAVA全系列 教程
面向对象的程序设计语言
Python全系列 教程
Python3.x版本,未来主流的版本
人工智能 教程
顺势而为,AI创新未来
大厂算法 教程
算法,程序员自我提升必经之路
C++ 教程
一门通用计算机编程语言
微服务 教程
目前业界流行的框架组合
web前端全系列 教程
通向WEB技术世界的钥匙
大数据全系列 教程
站在云端操控万千数据
AIGC全能工具班
A A
White Night
作用:修改或创建一个Topic
命令:mqadmin updateTopic -b | -c [-h] [-n ] [-o ] [-p ] [-r ] [-s ] -t [-u ] [-w ]
参数:
- -n: name server地址列表
- -c: cluster 名称,表示topic 建在该集群
- -t: 设置topic名称
- -h: 打印help信息
- -o: 设置topic是否为有序的 取值:true、false(默认)
- -p: 设置topic的权限
示例:
xxxxxxxxxx
mqadmin updateTopic -n localhost:9876 -c DefaultCluster -t testtopic
作用:从broker和nameserver删除topic
命令:mqadmin deleteTopic -c [-h] [-n ] -t
参数:
- -n: name server地址列表
- -c: cluster 名称,表示topic 建在该集群
- -t: 设置topic名称
- -h: 打印help信息
示例:
xxxxxxxxxx
mqadmin deleteTopic -n localhost:9876 -c DefaultCluster -t testtopic
作用:从nameserver列出所有topic
命令:mqadmin topicList [-c] [-h] [-n ]
参数:
- -n: name server地址列表
- -c: cluster 名称,表示topic 建在该集群
- -h: 打印help信息
示例:
xxxxxxxxxx
mqadmin topicList -n localhost:9876
作用:检查topic的状态信息
命令:mqadmin topicStatus [-h] [-n ] -t
参数:
- -n: name server地址列表
- -c: cluster 名称,表示topic 建在该集群
- -t: 设置topic名称
- -h: 打印help信息
示例
xxxxxxxxxx
mqadmin topicStatus -n localhost:9876 -t testtopic
作用:清理未使用的topic
命令:mqadmin cleanUnusedTopic [-b ] [-c ] [-h] [-n ]
参数:
- -n: name server地址列表
- -b: broker地址
- -c: 集群名称
- -h: 打印help信息
关闭namesrv和broker服务
xxxxxxxxxx
mqshutdown namesrv
mqshutdown broker