How to restart RabbitMQ service

I am getting a strange error while restarting the rabbitmq service and because of that I am unable to restart RabbitMQ service. I got this message from EventViewer and have tried to find solution by googling but no luck..please suggest.

RabbitMQ: Erlang machine voluntarily stopped. The service is not restarted as OnFail is set to ignore.

Thanks


Solution 1:

On a modern Linux you can restart it like any other service

sudo service rabbitmq-server restart

There is a specific control interface as well

sudo rabbitmqctl "report"
sudo rabbitmqctl "reset"

Solution 2:

As per the documentation of RabbitMQ CLI docs you can do the following:

rabbitmqctl stop
rabbitmqctl start_app

Solution 3:

If you reinstall RabbitMQ and have issues running it as a windows service, a workaround could be the following:

In cmd.exe, run from the rabbit sbin folder:

rabbitmq-service.bat remove
rabbitmq-service.bat install
net start rabbitmq

It worked for me on windows 7.