RabbitMQ的集群和高可用不适合跨域的情况,如果跨域可以使用Shovel或Federation。
描述:我们需要配置三台服务器:ServerA, ServerB, ServerC
Step 1:安装RabbitMQ,ServerA, ServerB, ServerC:Windows & RabbitMQ:安装,Step 1, 2, 3, 4, 5
Step 2:修改ServerA, ServerB, ServerC的Host文件,例如ServerA:
ServerB 201.45.1.180 ServerC 202.45.1.115
Step 3:启用Shovel和Shovel Management Plugin,ServerA, ServerB, ServerC:
"C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.1\sbin\rabbitmq-plugins.bat" enable rabbitmq_shovel
"C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.1\sbin\rabbitmq-plugins.bat" enable rabbitmq_shovel_management
Step 4:配置Shovel