单机上的集群形成,由于端口正在使用中,导致第二个节点崩溃

时间:2019-05-09 12:49:59

标签: rabbitmq

在我的桌面上,我正在尝试创建RabbitMQ集群。安装RabbitMQ服务器v3.7.14(和Erlang v21.3)之后,第一个std::vector<int> large(2147483648, 0); 节点将安装在端口rabbit@localhost上。我正在尝试通过遵循以下文档来设置第二个节点:https://www.rabbitmq.com/clustering.html#single-machine

要创建名称为15672的第二个节点,请在CMD上执行以下命令:

hare@localhost

但是set RABBITMQ_NODE_PORT=5673 set RABBITMQ_SERVER_START_ARGS="-rabbitmq_management listener [{port,15673}]" set RABBITMQ_NODENAME=hare@localhost rabbitmq-server.bat 导致崩溃,并记录了以下内容:

rabbitmq-server.bat

对于[error] <0.509.0> Failed to start Ranch listener rabbit_web_dispatch_sup_15672 in ranch_tcp:listen([{cacerts,'...'},{key,'...'},{cert,'...'},{port,15672}]) for reason eaddrinuse (address already in use) [error] <0.509.0> CRASH REPORT Process <0.509.0> with 0 neighbours exited with reason: {listen_error,rabbit_web_dispatch_sup_15672,eaddrinuse} in ranch_acceptors_sup:listen_error/5 line 66 [error] <0.507.0> Supervisor {<0.507.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link(rabbit_web_dispatch_sup_15672, ranch_tcp) at undefined exit with reason {listen_error,rabbit_web_dispatch_sup_15672,eaddrinuse} in context start_error [error] <0.449.0> ** Generic server rabbit_web_dispatch_registry terminating ,我是否必须像上面对Ranch listener所做的一样(将其设置为端口15673,以避免发生冲突)?但是我不知道如何为rabbitmq_management设置RABBITMQ_SERVER_START_ARGS ...

有人可以帮我为Ranch listener配置RABBITMQ_SERVER_START_ARGS吗?

编辑

这是故障转储:

Ranch listener

0 个答案:

没有答案