Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

-bash: rabbitmq-server: command not found

Trying to start my rabbitmq server, but I get this error. I've followed all of the instructions on how to install it. The rabbitmq-server file lives inside /usr/local/sbin. So I change directory to sbin, and write rabbitmq-server in my terminal but it shows the error -bash: rabbitmq-server: command not found. I've already added the following line: export PATH=/usr/local/sbin:$PATH at the bottom of my bash_profile, as per instructions. Any idea why it isn't working?

like image 694
Zorgan Avatar asked Sep 10 '26 12:09

Zorgan


2 Answers

Please try this,

Navigate to the path 'RabbitMQ Server \rabbitmq_server-VERSION\sbin' then follow below steps,

  1. Run the command 'rabbitmqctl status'. You will the full status (This is just to check the status).
  2. Now run 'rabbitmq-plugins enable rabbitmq_management'
  3. Run the command 'rabbitmqctl stop'
  4. Run the command 'rabbitmq-service start'
  5. In browser go to localhost:15672

Now You should be able to see RabbitMQ management plugin, it means all services running fine. You can try login with guest as username and password, which is the default one.

like image 147
Vijayanath Viswanathan Avatar answered Sep 13 '26 05:09

Vijayanath Viswanathan


I would prefer this command:

brew services run rabbitmq

I feel it more similar to systemd.

brew services command:
Integrates Homebrew formulae with macOS' launchctl manager.

[sudo] brew services list
List all running services for the current user (or root)

[sudo] brew services run formula|--all
Run the service formula without starting at login (or boot).

[sudo] brew services start formula|--all
Start the service formula immediately and register it to launch at login (or boot).

[sudo] brew services stop formula|--all
Stop the service formula immediately and unregister it from launching at login (or boot).

[sudo] brew services restart formula|--all
Stop (if necessary) and start the service immediately and register it to launch at login (or boot).

[sudo] brew services cleanup
Remove all unused services.
like image 40
1927120 Avatar answered Sep 13 '26 06:09

1927120



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!