Windows搭建测试RabbitMq遇到的问题
Posted iDEAAM 爱地爱木
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Windows搭建测试RabbitMq遇到的问题相关的知识,希望对你有一定的参考价值。
报错:
d:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmq-plugins e
ble rabbitmq_management
Plugin configuration unchanged.
Applying plugin configuration to [email protected] failed.
* Could not contact node [email protected]
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 ‘[email protected]‘ ...
Error: unable to connect to node ‘[email protected]‘: nodedown
DIAGNOSTICS
===========
attempted to contact: [‘[email protected]‘]
[email protected]:
* 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: ‘[email protected]‘
- 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
官方安装手册: http://www.rabbitmq.com/install-windows-manual.html
以上是关于Windows搭建测试RabbitMq遇到的问题的主要内容,如果未能解决你的问题,请参考以下文章
消息队列篇——windows本地搭建RabbitMQ Server
centos平台基于snortbarnyard2以及base的IDS(入侵检测系统)的搭建与测试及所遇问题汇总