Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I start a RabbitMQ node?

Tags:

rabbitmq

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?

like image 398
tayoung Avatar asked Nov 11 '17 20:11

tayoung


People also ask

What is RabbitMQ node?

A RabbitMQ node is the basic "message broker" service (process running on a server) which provides core RabbitMQ features such as exchanges, virtual hosts, queues, etc. You need at least one RabbitMQ node to be up-and-running, to use RabbitMQ. A RabbitMQ cluster is simply a grouping of one or more RabbitMQ nodes.

How do I host RabbitMQ?

When configuring RabbitMQ, at least one vhost is needed, which in default is just a slash “/”. Vhosts are created through the management portal, through the HTTP API or via rabbitmqctl. View vhosts by entering the admin tab and select the Virtual Hosts. Select the Add New Virtual Host options to create a new 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.

like image 83
MerickOWA Avatar answered Sep 21 '22 18:09

MerickOWA


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
like image 22
Edgar Ortega Avatar answered Sep 17 '22 18:09

Edgar Ortega