我有兩臺Windows Server 2012 R2機器位於客戶端的數據中心之一。這兩臺服務器都是域加入的。他們都有RabbitMQ 3.6.0。安裝在它們上面。 RabbitMQ在兩臺機器上都作爲Windows服務運行。我試圖長時間聚集這兩臺機器,現在沒有成功。當我嘗試對它們進行羣集時,我總是遇到以下錯誤。RabbitMQ Erlang分發失敗
第一臺機器nodeA我運行命令'rabbitmqctl join_cluster rabbit @ nodeB'。這就是我得到:
Clustering node '[email protected]' with '[email protected]' ...
Error: unable to connect to nodes ['[email protected]']: nodedown
`DIAGNOSTICS`
===========
attempted to contact: ['[email protected]']
[email protected]:
* connected to epmd (port 4369) on nodeB
* 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\mydirectory
- cookie hash: l+SSu57+cRyAQ03AJdwAbQ==
我已經試過這種設置與Azure的虛擬機Azure的虛擬網絡中,我成功地聚集在兩個虛擬機,但似乎我無法連接這兩個(客戶機)在一起。
這是我做了什麼,並確保:
- 沒有任何防火牆阻止連接
- 添加主機名到位於c宿主文件:\ WINDOWS \ SYSTEM32 \ drivers \ etc中
- 試過指主機名的FQDN,無所添加到hosts文件
- 試過指主機以大寫字母和不
- 複製完全相同的.erlang.cookie到C的名字:\ Windows和C:\我們ers \ mydirectory在這兩臺機器上。
- 我已閱讀,理解並應用RabbitMQ集羣指南https://www.rabbitmq.com/clustering.html
- 停止,重新啓動,重新安裝兩臺機器上的RabbitMQ。
看來我無法讓它工作。在Azure機器上,這不是域加入的羣集,效果很好。我真的沒有選擇...任何幫助?
Erlang Cookie在這些機器上相同? – cantSleepNow
是的,該cookie是相同的,因此是餅乾哈希 – user2632919