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
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
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