How do I stop the RabbitMQ server on localhost

It turns out that it is related to permissions. Somehow my rabbitmq server was started with user 'rabbitmq' (which is strange), so that I had to do

sudo -u rabbitmq rabbitmqctl stop

In my dev environment where I keep it running all the time, I use:

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.rabbitmq.plist

and to start it

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.rabbitmq.plist

Even easier....

brew services stop rabbitmq
brew services start rabbitmq

Tags:

Rabbitmq

Amqp