2017-06-23 2 views
0

Ich habe rabbitmq in zwei Maschinen installiert. Und alle haben gut funktioniert. Dann laufe ich den Befehl: rabbitmqctl join_cluster --ram [email protected], es nicht den Fehler Info work.and:rabbitmq Cluster kann keine Verbindung zu Knoten herstellen

Error: unable to connect to nodes [[email protected]]: nodedown 

DIAGNOSTICS 
=========== 

attempted to contact: [[email protected]] 

[email protected]: 
* connected to epmd (port 4369) on rabbit1 
* epmd reports node 'rabbit' running on port 25672 
* TCP connection succeeded but Erlang distribution failed 

* Hostname mismatch: node "[email protected]" believes its host is different. 
Please ensure that hostnames resolve the same way locally and on 
"[email protected]" 


current node details: 
- node name: '[email protected]' 
- home dir: /var/lib/rabbitmq 
- cookie hash: 9z8msPdTpEUf5GeMrHGIqQ== 

ich es in google gesucht, und ich hatte meine/etc geändert/hosts-Datei:

127.0.0.1 rabbit2 localhost localhost.localdomain localhost4 
localhost4.localdomain4 
::1 rabbit2  localhost localhost.localdomain localhost6 
localhost6.localdomain6 

11.168.1.232 rabbit1 
11.168.1.172 rabbit2 

Und das .erlang.cookie habe ich ihnen gleich gemacht.

+0

vielleicht die Firewall? – Gabriele

+0

Nein, ich löste dies durch Neustart meines os. –

Antwort

0

Ich habe gerade dieses Problem gelöst, indem ich mein os neugestartet habe, als ich die /etc/hosts geändert habe. Und schließlich hat es funktioniert, ich denke, es wäre die/etc/hosts nicht wirksam werden.

Verwandte Themen