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

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

报错:

d:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmq-plugins e

ble rabbitmq_management
Plugin configuration unchanged.

Applying plugin configuration to rabbit@WIN-UKSHOMS5L3V... failed.

* Could not contact node rabbit@WIN-UKSHOMS5L3V.
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   拷贝到 win10:C:\Users\%USERNAME%\.erlang.cookie ,然后重新启动

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

程序猿冷静 冷静 看看,

程序猿专用早餐机。和掌柜说 ideaam,可以节省20元。   或復·制这段描述¥k3MbbVKccMU¥后到淘♂寳♀

或者 淘宝扫码 支持下同行哈

----------------------------------------------------------------------------------------------------------------------------

转载于:https://www.cnblogs.com/haoliansheng/p/6008980.html

你可能感兴趣的文章
LVM扩容之xfs文件系统
查看>>
Hbase记录-client访问zookeeper大量断开以及参数调优分析(转载)
查看>>
代码片段收集
查看>>
vue-cli3创建项目时报错
查看>>
输入1-53周,输出1-53周的开始时间和结束时间
查看>>
实验二
查看>>
shell——按指定列排序
查看>>
crash 收集
查看>>
507 LOJ 「LibreOJ NOI Round #1」接竹竿
查看>>
UI基础--烟花动画
查看>>
2018. 2.4 Java中集合嵌套集合的练习
查看>>
精通ASP.NET Web程序测试
查看>>
vue 根据不同属性 设置背景
查看>>
51Nod1601 完全图的最小生成树计数 Trie Prufer编码
查看>>
Codeforces 1110D. Jongmah 动态规划
查看>>
android驱动在win10系统上安装的心酸历程
查看>>
优雅的程序员
查看>>
oracle之三 自动任务调度
查看>>
Android dex分包方案
查看>>
ThreadLocal为什么要用WeakReference
查看>>