博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Windows搭建测试RabbitMq遇到的问题
阅读量:7096 次
发布时间:2019-06-28

本文共 1871 字,大约阅读时间需要 6 分钟。

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 

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

转载地址:http://qxxql.baihongyu.com/

你可能感兴趣的文章
React Native系列(6) - 编译安卓私有React-Native代码
查看>>
初探12306售票算法(一)- 理论(转)
查看>>
shell中使用sqlplus及调试相关
查看>>
java.lang.Exception: DEBUG -- CLOSE BY CLIENT STACK TRACE 的理解
查看>>
Python学习【第23篇】:利用threading模块开线程
查看>>
C++之编码问题(Unicode,ASCII,本地默认)
查看>>
字母排序
查看>>
[日常] DNS的迭代查询过程
查看>>
[Linux] Nginx 提供静态内容和优化积压队列
查看>>
Excel VBA 基本概念
查看>>
获取文件Md5值
查看>>
Linux常用命令整理
查看>>
逛论坛时发现 有关 递归调用
查看>>
JavaScript的3大组成部分&&ECMAScript函数&&闭包
查看>>
.NET Core 跨平台发布(dotnet publish)
查看>>
OpenAcc社区版安装教程(Linux版)(更新版)
查看>>
java写入文件的几种方法
查看>>
NGINX模块(一)
查看>>
Linux service命令
查看>>
Linux动态频率调节系统CPUFreq之二:核心(core)架构与API
查看>>