2017-09-21 95 views
0

在Windows 7企業版64位操作系統上,我將Erlang(otp_win64_20.0.exe)和RabbitMQ 3.6.9(64位)作爲獨立安裝。我爲ERLANG_HOME設置了系統變量。安裝成功並且RabbitMQ服務正在運行。無法在Windows中啓動rabbitmq管理控制檯

但是當我嘗試啓用rabbitmq_management時,出現以下錯誤。

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.9\sbin>rabbitmq-plugins.bat enable 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. 


C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.9\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 machinename 
    * epmd reports node 'rabbit' running on port 25672   
    * TCP connection succeeded but Erlang distribution failed 
    * Authentication failed (rejected by the remote node), please check the Erlang cookie 

current node details: 
- node name: '[email protected]' 
- home dir: C:\ 
- cookie hash: LLCyvm2Dd7VpUhtY9jxerg== 

我會通過計算器不同崗位,仍然無法弄清楚這是什麼問題,與節點和管理插件的根本原因。

任何幫助解決這個問題,高度讚賞。

+0

你的'rabbitmqctl status'是什麼? – mpm

+0

@mpm我在文章中已經提供了「rabbitmqctl status」的輸出。請在那裏閱讀診斷信息。謝謝。 – VeeAar

+0

對不起,我錯過了。由於'rabbitmqctl status'給你'節點'兔'根本沒有運行'和'*建議:啓動點頭'是什麼讓你認爲rabbitmq服務器正在運行? – mpm

回答

1

看起來你有`erlang.cookie問題。它包含允許連接到Erlang節點的密鑰。你可以閱讀更多關於它在official documentation,但最簡單的解決方案,可以發現here

安裝一個非管理員用戶離開.erlang.cookie在錯誤的地方

這使得無法使用rabbitmqctl。

解決方法:

運行安裝程序以管理員或 複製文件從%SYSTEMROOT%至%HOMEDRIVE %% HOMEPATH%手動.erlang.cookie。

哪裏%SystemRoot%通常C:\WINDOWS\.erlang.cookie%HOMEDRIVE%%HOMEPATH%應該像C:\Documents and Settings\%USERNAME%\.erlang.cookieC:\Users\%USERNAME%\.erlang.cookie

這應該解決您的問題。

相關問題