In my case the paths /usr/local/sbin/
nor /usr/local/Cellar/rabbitmq/
etc., did not work as Homebrew was putting these all together in a different location.
I opened Finder
in my Mac and searched for rabbitmq-server
in the search textbox on top right corner of the Finder
window.
rabbitmq-server
was located under the path below:
/Users/${USER}/homebrew/Cellar/rabbitmq/3.7.15/sbin
So in my ~/.bash_profile
, I updated the PATH
as below:
export PATH=$PATH:/Users/${USER}/homebrew/Cellar/rabbitmq/3.7.15/sbin
After source ~/.bash_profile
~ $ rabbitmq-server
## ##
## ## RabbitMQ 3.7.15. Copyright (C) 2007-2019 Pivotal Software, Inc.
########## Licensed under the MPL. See https://www.rabbitmq.com/
###### ##
########## Logs: /Users/santoshsindham/homebrew/var/log/rabbitmq/rabbit@localhost.log
/Users/santoshsindham/homebrew/var/log/rabbitmq/rabbit@localhost_upgrade.log
Starting broker...
completed with 6 plugins.