brew update
brew install rabbitmq
The RabbitMQ server scripts and CLI tools are installed into the sbin directory.
- Intel macs:
/usr/local/Cellar/rabbitmq/{version}/
- Apple Silicon:
/opt/homebrew/Cellar/rabbitmq/{version}/
They should be accessible from /usr/local/opt/rabbitmq/sbin
for for Intel Macs or /opt/homebrew/opt/rabbitmq/sbin
for Apple Silicon Macs. Links to binaries have been created under /usr/local/sbin
for Intel Macs or /opt/homebrew/sbin
for Apple Silicon ones.
To find out locations for your installation, use:
brew info rabbitmq
To start a node in the foreground, run:
CONF_ENV_FILE="/opt/homebrew/etc/rabbitmq/rabbitmq-env.conf" /opt/homebrew/opt/rabbitmq/sbin/rabbitmq-server
To start a node in the background:
brew services start rabbitmq
To stop a running node, use:
brew services stop rabbitmq
or CLI tools directly:
/opt/homebrew/opt/rabbitmq/sbin/rabbitmqctl shutdown
The command will wait for the node process to stop. If the target node is not running, it will exit with a warning.