“node with name ”rabbit“ already running”, but also “unable to connect to node 'rabbit'”

后端 未结 9 1473
[愿得一人]
[愿得一人] 2020-12-23 09:26

Rabbitmq server does not start, saying it\'s already running:

$: rabbitmq-server
Activating RabbitMQ plugins ...
0 plugins activated:

node wit         


        
9条回答
  •  渐次进展
    2020-12-23 09:52

    This issue can be caused by two issues:

    1. Rabbit is already running on the server. If that is the case, use the answer you found of killing the currently running process (ps aux | grep rabbit | grep -v grep)
    2. You have changed the IP address of your machine but not changed the /etc/hosts file to reflect the new IP address of the machine.

    The more common of the issues is the first, but the harder to find is the second (especially if you have rabbit running on the other machine. If rabbit is installed on the other machine it will look at the old IP address and would see another machine already running rabbitmq and give you the same error. This has caused me grief in the past.

提交回复
热议问题