Windows搭建測試RabbitMq遇到的問題

來源:互聯網
上載者:User

標籤:manually   ring   rest   sed   cookies   file   conf   using   account   

報錯:

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遇到的問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.