← 返回命令列表

Linux command

rabbitmq-streams 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List

rabbitmq-streams list_stream_connections

Display

rabbitmq-streams stream_status --vhost [vhost] --stream [stream_name]

Add

rabbitmq-streams add_replica --vhost [vhost] [stream_name] [node]

Delete

rabbitmq-streams delete_replica --vhost [vhost] [stream_name] [node]

Restart

rabbitmq-streams restart_stream --vhost [vhost] [stream_name]

Example

rabbitmq-streams restart_stream --vhost [vhost] --preferred-leader-node [node] [stream_name]

说明

rabbitmq-streams is a command line tool for managing RabbitMQ streams. Streams are persistent, replicated, append-only log data structures designed for high-throughput messaging workloads. This tool manages stream replicas, monitors stream status, and lists stream connections and consumers. Part of the RabbitMQ CLI tools suite.

参数

-n _node_
Target node to execute the command on. Default is the node of the local host.
-t _timeout_
Operation timeout in seconds. Default varies per command.
-l, --longnames
Use long node names (FQDN). Must match the broker configuration.
-q, --quiet
Suppress informational messages, output only essential data.
--formatter _formatter_
Output format: csv, erlang, json, pretty_table, table.

FAQ

What is the rabbitmq-streams command used for?

rabbitmq-streams is a command line tool for managing RabbitMQ streams. Streams are persistent, replicated, append-only log data structures designed for high-throughput messaging workloads. This tool manages stream replicas, monitors stream status, and lists stream connections and consumers. Part of the RabbitMQ CLI tools suite.

How do I run a basic rabbitmq-streams example?

Run `rabbitmq-streams list_stream_connections` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -n _node_ do in rabbitmq-streams?

Target node to execute the command on. Default is the node of the local host.