Windows搭建测试RabbitMq遇到的问题

问题:

E:\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmq-plugins.bat enable rabbitmq_management
Plugin configuration unchanged.

Applying plugin configuration to rabbit@SC-201607101239... failed.
 * Could not contact node rabbit@SC-201607101239.
   Changes will take effect at broker restart.
 * Options: --online  - fail if broker cannot be contacted.
            --offline - do not try to contact broker.

 

E:\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmqctl status
Status of node 'rabbit@SC-201607101239' ...
Error: unable to connect to node 'rabbit@SC-201607101239': nodedown

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

attempted to contact: ['rabbit@SC-201607101239']

rabbit@SC-201607101239:
  * connected to epmd (port 4369) on SC-201607101239
  * epmd reports node 'rabbit' running on port 25672
  * TCP connection succeeded but Erlang distribution failed
  * suggestion: hostname mismatch?
  * suggestion: is the cookie set correctly?
  * suggestion: is the Erlang distribution using TLS?

current node details:
- node name: 'rabbitmq-cli-27@SC-201607101239'
- home dir: C:\Users\Administrator
- cookie hash: +Xg8GwzCRQiqRrJZqqF30A==

 

解决方法

Synchronise Erlang Cookies (when running a manually installed Windows Service)

Erlang Security Cookies used by the service account and the user running rabbitmqctl.bat must be synchronised for rabbitmqctl.bat to function.

To ensure Erlang cookie files contain the same string, copy the .erlang.cookie file from the Windows directory (normally C:\WINDOWS\.erlang.cookie) to replace the user .erlang.cookie. The user cookie will be in the user's home directory (%HOMEDRIVE%%HOMEPATH%), e.g.C:\Documents and Settings\%USERNAME%\.erlang.cookie orC:\Users\%USERNAME%\.erlang.cookie (Windows Vista and later).

同步Erlang Cookies

具体操作:将 C:\WINDOWS\.erlang.cookie  

同步到RabbitMq 启动用户 例如win10:C:\Users\%USERNAME%\.erlang.cookie 

%USERNAME% 代表当前用户

官方安装手册: http://www.rabbitmq.com/install-windows-manual.html

转载于:https://my.oschina.net/wenjinglian/blog/729699

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值