← 返回命令列表

Linux command

aws-mq 命令

文本

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

常用示例

List all brokers

aws mq list-brokers

Create an ActiveMQ broker

aws mq create-broker --broker-name [my-broker] --engine-type ACTIVEMQ --engine-version [5.17.6] --host-instance-type [mq.m5.large] --deployment-mode SINGLE_INSTANCE --users Username=[admin],Password=[password]

Create a RabbitMQ broker

aws mq create-broker --broker-name [my-broker] --engine-type RABBITMQ --engine-version [3.13] --host-instance-type [mq.m5.large] --deployment-mode SINGLE_INSTANCE --users Username=[admin],Password=[password]

Describe a broker

aws mq describe-broker --broker-id [broker-id]

List all configurations

aws mq list-configurations

Reboot a broker

aws mq reboot-broker --broker-id [broker-id]

Delete a broker

aws mq delete-broker --broker-id [broker-id]

说明

aws mq is the AWS CLI interface for Amazon MQ, a managed message broker service that supports Apache ActiveMQ and RabbitMQ engines. Amazon MQ provisions, operates, and maintains message brokers, handling infrastructure tasks like hardware provisioning, broker setup, software upgrades, and failure detection. Amazon MQ provides compatibility with standard messaging APIs and protocols including JMS, NMS, AMQP, STOMP, MQTT, and WebSocket, allowing migration of existing messaging workloads to the cloud without rewriting application code. Brokers can be deployed in single-instance mode for development or active/standby mode for production high availability across multiple Availability Zones.

FAQ

What is the aws-mq command used for?

aws mq is the AWS CLI interface for Amazon MQ, a managed message broker service that supports Apache ActiveMQ and RabbitMQ engines. Amazon MQ provisions, operates, and maintains message brokers, handling infrastructure tasks like hardware provisioning, broker setup, software upgrades, and failure detection. Amazon MQ provides compatibility with standard messaging APIs and protocols including JMS, NMS, AMQP, STOMP, MQTT, and WebSocket, allowing migration of existing messaging workloads to the cloud without rewriting application code. Brokers can be deployed in single-instance mode for development or active/standby mode for production high availability across multiple Availability Zones.

How do I run a basic aws-mq example?

Run `aws mq list-brokers` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more aws-mq examples?

This page includes 7 examples for aws-mq, plus related commands for nearby Linux tasks.