How do I start a RabbitMQ node?

Viewed 24690

I keep getting this error every time I try to do something with RabbitMQ:

attempted to contact: [fdbvhost@FORTE]

fdbvhost@FORTE:
  * connected to epmd (port 4369) on FORTE
  * epmd reports: node 'fdbvhost' not running at all
                  no other nodes on FORTE
  * suggestion: start the node

current node details:
- node name: 'rabbitmq-cli-54@FORTE'
- home dir: C:\Users\Jesus
- cookie hash: iuRlQy0F81aBpoY9aQqAzw==

This is the output I get when I run rabbitmqctl -n fdbvhost status or /rabbitmqctl -n fdbvhost list_vhosts.

I've tried rabbitmqctl -n fdbvhost start which gives me the following output:

Error: could not recognise command
Usage:
rabbitmqctl [-n <node>] [-t <timeout>] [-q] <command> [<command options>]
...

So this doesn't start it. I cannot find anything about starting a node in the documentation. How do I actually start my node/vhost?

2 Answers

Try running the following command from the RabbitMQ's installation sbin directory

rabbitmq-server start -detached

This should start the broker node if it was stopped for some reason.

Check if you have RabbitMQ installed as a service in the /etc/init.d/ folder

sudo su # might be needed
cd /etc/init.d/
ls . | grep rabbit

The output should be rabbitmq-server

If that's the case, then, try restarting your service with:

sudo service rabbitmq-server restart
Related