我正在設置一個RabbitMQ集羣,它的讀數爲docs。RabbitMQ clusturing`join_cluster`
設置它時,它通過命令rabbitmqctl join_cluster [email protected]
將Machine2和Machine1連接起來。現在什麼是[email protected]
?
我知道它的[email protected]
,但是當我啓動這個命令時,它說Error: {cannot_discover_cluster,"Cannot cluster node with itself"}
。
當我輸入IP而不是主機名時,它說Error: {cannot_discover_cluster,"The nodes provided are either offline or not running"}
。
我也在/etc/hosts文件中加入了IP rabbit1
。
我在這裏錯過了什麼?
嗯,我看到的只有一個可能性,那就是選項之一。 '/ etc/hosts'可能會出錯。我只在格式爲'1.2.3.4 rabbit'的文件中添加了另一行。 – PythonEnthusiast