RabbitMQ create message queue user error

problem

When configuring the basic environment of openstack, after installing RabbitMQ, creating a message queue user cannot be created

rabbitmqctl add_user openstack RABBIT_PASS

Insert picture description here

solve

This may be due to some reasons that the registration items were not correctly configured when the service was installed, and the service can be reinstalled.
I went to Baidu again, and the process can be killed.

ps -ef | grep rabbitmq       #查询进程号
ps -ef | grep rabbitmq | grep -v grep | awk '{print $2}' | xargs kill -9   #杀死进程
rabbitmq-server -detached    #启动
rabbitmqctl status           #查看状态         

Create again to succeed
Insert picture description here

Follow-up

Use the following command to query

systemctl status rabbitmq-server

Service is closed

cd /var/lib/rabbitmq/mnesia delete all files in the directory, and then execute

Guess you like

Origin blog.csdn.net/weixin_50344742/article/details/113359088