RabbitMQ reports Error unable to connect to node rabbit@localhost nodedown and solutions

An error occurred when using the following command

rabbitmqctl add_user openstack RABBIT_PASS 

The error is as follows:
Insert picture description here
Solution:
First check the mq process

ps -ef | grep rabbitmq

Kill the mq process queried above

ps -ef | grep rabbitmq | grep -v grep | awk '{print $2}' | xargs kill -9

Restart mq

rabbitmq-server -detached

Query the status of mq

rabbitmqctl status

Guess you like

Origin blog.csdn.net/Gengchenchen/article/details/114641665