Skip to content

概述

整体介绍

RobustMQ Command 是 RobustMQ 提供的命令行工具,用于集群相关操作。目前包含 mqtt、place、journal 三个模块,分别对应 RobustMQ 的 MQTT Broker、元数据服务 Placement Center、存储层 Journal Server三个组件。

$ ./bin/robust-ctl 
Command line tool for RobustMQ

Usage: robust-ctl <COMMAND>

Commands:
  mqtt
          Command line tool for mqtt broker
  place
          Command line tool for placement center
  journal
          Command line tool for journal engine
  help
          Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help
  -V, --version
          Print version

./bin/robust-ctl mqtt

负责 MQTT Broker 服务相关的操作

$ ./bin/robust-ctl mqtt -h
Command line tool for mqtt broker

Usage: robust-ctl mqtt [OPTIONS] <COMMAND>

Commands:
  status
          
  user
          related operations of mqtt users, such as listing, creating, and deleting 
  list-connection
          
  list-topic
          action: list topics
  publish
          Command line tool for mqtt broker
  subscribe
          Command line tool for mqtt broker
  slow-sub
          
  help
          Print this message or the help of the given subcommand(s)

Options:
  -s, --server <SERVER>
          [default: 127.0.0.1:9981]
  -h, --help
          Print help

./bin/robust-ctl place

负责 Placement Center 服务相关的操作

$ ./bin/robust-ctl place -h
Command line tool for placement center

Usage: robust-ctl place [OPTIONS] <COMMAND>

Commands:
  status
          
  add-learner
          action: add learner
  change-membership
          action: change membership
  help
          Print this message or the help of the given subcommand(s)

Options:
  -s, --server <SERVER>
          [default: 127.0.0.1:1228]
  -h, --help
          Print help

./bin/robust-ctl journal

负责 Journal Server 服务相关的操作

./bin/robust-ctl journal -h
Command line tool for journal engine

Usage: robust-ctl journal [OPTIONS]

Options:
  -s, --server <SERVER>
          [default: 127.0.0.1:1228]
  -a, --action <ACTION>
          [default: status]
  -h, --help
          Print help