open_2.8.0RocketMQ常用命令
1:# 切换到RocketMQ的bin目录
cd /home/seekcy/softs/rocketmq/bin
2:# 启动namesrv
nohup sh mqnamesrv -c /home/seekcy/softs/rocketmq/conf/namesrv.properties &
3:# 启动broker
nohup sh mqbroker -c /home/seekcy/softs/rocketmq/conf/broker.conf &
4:# 关闭broker服务
./mqshutdown broker
5:# 关闭namesrv服务
./mqshutdown namesrv
6:# 删除Topic
./mqadmin deleteTopic -n localhost:49876 -c DefaultCluster -t openV2–engine initiative-location-result
7:# 创建Topic
./mqadmin updateTopic -n localhost:49876 -c DefaultCluster -t openV2–engine initiative-location-result
8:# 查看所有topic
./mqadmin topicList -n localhost:49876
9:# 查看所有topic的吞吐TPS统计
./mqadmin statsAll -n localhost:49876
10:# 查看特定topic的吞吐TPS统计
./mqadmin statsAll -t openV2–engine-location-result -n localhost:49876
11:# 查看定位结果数据(topic:openV2–engine-location-result)积压情况
./mqadmin consumerProgress -g ‘open-location-result-v1-lister’ -n localhost:49876
-s true | grep ‘openV2–engine-location-result’ | grep -v ‘RETRY’ | sed ‘s/ +/
/g’ | cut -d ‘ ‘ -f 7 | sort -r | head -n 1
12:# 查看mqadmin支持哪些命令
./mqadmin
13:# 查看具体命令的使用
./mqadmin help 命令名称
转载请注明作者和出处,并添加本页链接。
原文链接:
//svn.seekcy.com:33382/372