openstack搭建环境架构:rabbitmqctl add_user openstack RABBIT_PASS报错

命令行输入rabbitmqctl add_user openstack RABBIT_PASS时,报错

[root@ct ~]# rabbitmqctl add_user openstack RABBIT_PASS
Error: unable to connect to node rabbit@localhost: nodedown

DIAGNOSTICS
===========

attempted to contact: [rabbit@localhost]

rabbit@localhost:
  * connected to epmd (port 4369) on localhost
  * epmd reports node 'rabbit' running on port 25672
  * TCP connection succeeded but Erlang distribution failed

  * Hostname mismatch: node "rabbit@ct" believes its host is different. Please ensure that hostnames resolve the same way locally and on "rabbit@ct"


current node details:
- node name: 'rabbitmq-cli-76@ct'
- home dir: /var/lib/rabbitmq
- cookie hash: nig945TxVWdZofyOIX+Cqg==


openstack搭建环境架构:rabbitmqctl add_user openstack RABBIT_PASS报错_第1张图片
解决办法:
1)第一步看端口进程号

ps -elf |grep rabbitmq

openstack搭建环境架构:rabbitmqctl add_user openstack RABBIT_PASS报错_第2张图片
2)杀掉进程

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

rabbitmq-server -detached

在这里插入图片描述
3)查看状态

rabbitmqctl status

openstack搭建环境架构:rabbitmqctl add_user openstack RABBIT_PASS报错_第3张图片
4)再使用rabbitmqctl add_user openstack RABBIT_PASS
openstack搭建环境架构:rabbitmqctl add_user openstack RABBIT_PASS报错_第4张图片
问题解决~~

你可能感兴趣的:(报错集)