β

RabbitMQ安装后无法启动解决办法

老王 52 阅读
一、问题描述
RabbitMQ在安装后可能会出现无法启动,如:
Applying plugin configuration to rabbit@192... failed.
 * Could not contact node rabbit@192.
   Changes will take effect at broker restart.
 * Options: --online  - fail if broker cannot be contacted.
            --offline - do not try to contact broker.
Error: unable to connect to node rabbit@192: nodedown

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

attempted to contact: [rabbit@192]

rabbit@192:
  * unable to connect to epmd (port 4369) on 192: badarg (unknown POSIX error)


current node details:
- node name: 'rabbitmq-cli-97@192'
- home dir: /var/lib/rabbitmq
- cookie hash: rb2CNGgDqm+k5+jq1wj6vg==

Error: unable to connect to node rabbit@192: nodedown

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

attempted to contact: [rabbit@192]

rabbit@192:
  * unable to connect to epmd (port 4369) on 192: badarg (unknown POSIX error)


current node details:
- node name: 'rabbitmq-cli-71@192'
- home dir: /var/lib/rabbitmq
- cookie hash: rb2CNGgDqm+k5+jq1wj6vg==

Error: unable to connect to node rabbit@192: nodedown

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

attempted to contact: [rabbit@192]

rabbit@192:
  * unable to connect to epmd (port 4369) on 192: badarg (unknown POSIX error)


current node details:
- node name: 'rabbitmq-cli-64@192'
- home dir: /var/lib/rabbitmq
- cookie hash: rb2CNGgDqm+k5+jq1wj6vg==

Status of node rabbit@192
Error: unable to connect to node rabbit@192: nodedown

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

attempted to contact: [rabbit@192]

rabbit@192:
  * unable to connect to epmd (port 4369) on 192: badarg (unknown POSIX error)


current node details:
- node name: 'rabbitmq-cli-60@192'
- home dir: /var/lib/rabbitmq
- cookie hash: rb2CNGgDqm+k5+jq1wj6vg==
二、解决办法
vi /etc/rabbitmq/rabbitmq-env.conf  
在文件中写入“NODENAME=rabbit@localhost”,保存。
作者:老王
专注软件开发领域知识与创新。 .NET、Java、Php、Python、Go、NodeJs...... Go技术交流群:194583743 Python技术交流群:310949405 微软北京.Net
原文地址:RabbitMQ安装后无法启动解决办法, 感谢原作者分享。

发表评论