Skip to content

Instantly share code, notes, and snippets.

@barbietunnie
Last active October 26, 2023 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barbietunnie/d9794878fea64a4b433d84045388cb52 to your computer and use it in GitHub Desktop.
Save barbietunnie/d9794878fea64a4b433d84045388cb52 to your computer and use it in GitHub Desktop.
RabbitMQ Tips

RabbitMQ Tips

Installation

Mac

brew update
brew install rabbitmq

Locations

The RabbitMQ server scripts and CLI tools are installed into the sbin directory.

Mac

  • 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

Running

Mac

Starting the Server

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

Stopping the Server

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment