RabbitMQ 本地主机管理无法启动,日志文件中出现端口 5672 错误

问题描述 投票:0回答:2

我已在 Windows 10 计算机上安装了 RabbitMQ 3.11.2 和 Erlang 版本 25.1.1。

我对 RabbitMQ 非常陌生,无法启动 RabbitMQ 管理门户。我还启用了 RabbitMQ 管理插件。

在 Stack Overflow、Google Groups 和其他论坛上搜索了互联网上的各种建议,但都失败了。

在日志文件中我发现很多如下错误。

2022-11-07 11:50:09.594000+10:00 [error] <0.697.0> **Failed to start TCP listener [::]:5672**, error: {{shutdown,
2022-11-07 11:50:09.594000+10:00 [error] <0.697.0>                                                  {failed_to_start_child,
2022-11-07 11:50:09.594000+10:00 [error] <0.697.0>                                                   {ranch_embedded_sup,
2022-11-07 11:50:09.594000+10:00 [error] <0.697.0>                                                    {acceptor,
2022-11-07 11:50:09.594000+10:00 [error] <0.697.0>                                                     {0,0,0,0,0,0,0,0},
2022-11-07 11:50:09.594000+10:00 [error] <0.697.0>                                                     5672}},
2022-11-07 11:50:09.594000+10:00 [error] <0.697.0>                                                   {shutdown,
2022-11-07 11:50:09.594000+10:00 [error] <0.697.0>                                                    {failed_to_start_child,
2022-11-07 11:50:09.594000+10:00 [error] <0.697.0>                                                     {ranch_listener_sup,
2022-11-07 11:50:09.594000+10:00 [error] <0.697.0>                                                      {acceptor,
2022-11-07 11:50:09.594000+10:00 [error] <0.697.0>                                                       {0,0,0,0,0,0,0,0},
2022-11-07 11:50:09.594000+10:00 [error] <0.697.0>                                                       5672}},
2022-11-07 11:50:09.594000+10:00 [error] <0.697.0>                                                     {shutdown,
2022-11-07 11:50:09.594000+10:00 [error] <0.697.0>                                                      {failed_to_start_child,

2022-11-07 11:50:09.594000+10:00 [error] <0.704.0> **Failed to start Ranch listener {acceptor,{0,0,0,0,0,0,0,0},5672**} in ranch_tcp:listen(#{connection_type => supervisor,handshake_timeout => 5000,max_connections => infinity,num_acceptors => 10,num_conns_sups => 1,socket_opts => [{cacerts,'...'},{key,'...'},{cert,'...'},{ip,{0,0,0,0,0,0,0,0}},{port,5672},inet6,{backlog,128},{nodelay,true},{linger,{true,0}},{exit_on_close,false}]}) for reason eacces (permission denied)

=erl_crash_dump:0.5
Mon Nov  7 12:50:21 2022
Slogan: init terminating in do_boot **({error,{could_not_start_listener,::,5672,**{{shutdown,{_}},{child,undefined,rabbit_tcp_listener_sup_:::5672,{

我禁用了 McAfee 防火墙,我已将端口 5672 添加到 McAfee 防火墙,重新安装了 RabbitMQ 和 Erlang 应用程序至少 10 次,在 Windows 防火墙安全中打开了端口 5672,也尝试了 docker 映像,但我的 3 天努力未能启动它。

我在这里附上了RabbitMQ和Erlang日志文件,请提供您的宝贵建议。

rabbitmq message-queue messagebroker rabbitmq-exchange
2个回答
0
投票

错误很明显:

exception exit: {listen_error,{acceptor,{0,0,0,0,0,0,0,0},5672},eacces}

来自 Erlang 文档: https://www.erlang.org/doc/man/file.html

eacces
Missing search or write permissions for the parent directories of Dir.

© www.soinside.com 2019 - 2024. All rights reserved.