← 返回命令列表

Linux command

rabbitmq-server 命令

文本

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

常用示例

Start RabbitMQ server

rabbitmq-server

Start in background

rabbitmq-server -detached

Start with specific node name

RABBITMQ_NODENAME=[rabbit@hostname] rabbitmq-server

Start via systemd

sudo systemctl start rabbitmq-server

Enable management plugin

rabbitmq-plugins enable rabbitmq_management

Check server status

rabbitmqctl status

说明

rabbitmq-server starts the RabbitMQ message broker, a widely-used open-source message queue system. RabbitMQ implements AMQP 0-9-1 (Advanced Message Queuing Protocol) and also supports MQTT, STOMP, and AMQP 1.0 via plugins. The server is typically managed via systemd or init scripts in production. It listens on port 5672 for AMQP connections by default. The management plugin provides a web UI on port 15672 for monitoring queues, exchanges, and connections. RabbitMQ supports clustering for high availability, virtual hosts for multi-tenancy, and various exchange types (direct, topic, fanout, headers) for flexible message routing.

参数

-detached
Run the server in the background (daemonize).
-n _NODE_
Specify the node name (alternative to RABBITMQ_NODENAME).

FAQ

What is the rabbitmq-server command used for?

rabbitmq-server starts the RabbitMQ message broker, a widely-used open-source message queue system. RabbitMQ implements AMQP 0-9-1 (Advanced Message Queuing Protocol) and also supports MQTT, STOMP, and AMQP 1.0 via plugins. The server is typically managed via systemd or init scripts in production. It listens on port 5672 for AMQP connections by default. The management plugin provides a web UI on port 15672 for monitoring queues, exchanges, and connections. RabbitMQ supports clustering for high availability, virtual hosts for multi-tenancy, and various exchange types (direct, topic, fanout, headers) for flexible message routing.

How do I run a basic rabbitmq-server example?

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

What does -detached do in rabbitmq-server?

Run the server in the background (daemonize).