安装RabbitMQ,创建消息队列用户时报错怎么办
- 一.具体报错信息
- 二.背景介绍
- 三.解决办法
一.具体报错信息
Error: unable to connect to node rabbit@localhost: nodedown
二.背景介绍
在openstack-T版环境部署的时候,在安装RabbitMQ后,在创建消息队列用户,用于controler和 计算节点连接rabbitmq的认证(关联)时报错
[root@ct ~]# rabbitmqctl add_user openstack RABBIT_PASS
Error: unable to connect to node rabbit@localhost: nodedown
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24[root@ct ~]# systemctl enable rabbitmq-server.service [root@ct ~]# systemctl start rabbitmq-server.service [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-78@ct' - home dir: /var/lib/rabbitmq - cookie hash: sFo8yhXAlgTvkHNQ0wCYbQ==
三.解决办法
杀死mq进程,重启服务
复制代码
1
2
3
4
5
6[root@ct ~]# ps -ef | grep rabbitmq | grep -v grep | awk '{print $2}' | xargs kill -9 [root@ct ~]# rabbitmq-server -detached Warning: PID file not written; -detached was passed. [root@ct ~]# rabbitmqctl status
重新创建成功
最后
以上就是轻松西装最近收集整理的关于安装RabbitMQ,创建消息队列用户时报错怎么办???一.具体报错信息二.背景介绍三.解决办法的全部内容,更多相关安装RabbitMQ,创建消息队列用户时报错怎么办???一内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复