2017-09-21 2 views
0

Windows 7 Enterprise 64 비트 OS에서 독립 실행 형으로 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'는'node 'rabbit'not all at'을 주며'* suggestion : nod'를 시작하면 rabbitmq 서버가 돌아가고 있다고 생각합니까? – mpm

답변

1

`erlang.cookie에 문제가있는 것 같습니다. Erlang 노드에 연결할 수있는 키가 있습니다. 당신은 official documentation에 대한 자세한 내용을 읽을 수 있지만 가장 간단한 솔루션은 관리자가 아닌 사용자로 설치 here

있는 잘못된 곳이 불가능 사용할 수있게

에 .erlang.cookie 나뭇잎 할 수있다 rabbitmqctl.

해결 방법 :

실행 관리자 나에게이 % HOMEDRIVE %% HOMEPATH %의 여기서 % SystemRoot %에서 수동으로 복사 파일 .erlang.cookie로 설치. %SystemRoot% 일반적으로 C:\WINDOWS\.erlang.cookie%HOMEDRIVE%%HOMEPATH%이 문제를 해결해야 C:\Documents and Settings\%USERNAME%\.erlang.cookie 또는 C:\Users\%USERNAME%\.erlang.cookie

이 같은해야입니다

.

관련 문제