尝试访问本地主机上的RabbitMQ管理页面:5672,连接被拒绝。我已经通过国产软件重新安装了RabbitMQ,但仍然遇到了同样的问题。在重新安装之后,我运行了rabbitmq-server
,并得到了以下提示:
## ## RabbitMQ 3.8.1
## ##
########## Copyright (c) 2007-2019 Pivotal Software, Inc.
###### ##
########## Licensed under the MPL 1.1. Website: https://rabbitmq.com
Doc guides: https://rabbitmq.com/documentation.html
Support: https://rabbitmq.com/contact.html
Tutorials: https://rabbitmq.com/getstarted.html
Monitoring: https://rabbitmq.com/monitoring.html
Logs: /usr/local/var/log/rabbitmq/rabbit@localhost.log
/usr/local/var/log/rabbitmq/rabbit@localhost_upgrade.log
Config file(s): (none)
Starting broker... completed with 6 plugins.
不知道为什么我不能通过默认端口访问管理页面。我有几个使用RabbitMQ运行的应用程序,现在它们都没有工作了。从Mac中完全卸载RabbitMQ的最佳方法是什么,这样我就可以运行一个干净的安装?
发布于 2019-11-28 14:41:04
我认为您应该启用管理插件,如rabbitmq文档所述:
管理插件包含在RabbitMQ发行版中。就像任何其他的插件,它必须启用,然后才能使用。
只需转到您的rabbitmq安装目录(示例路径/usr/save/rabbitmq_server-x.x.x/sbin
)并运行以下命令:
rabbitmq-plugins enable rabbitmq_management
在此之后,如果rabbitmq管理仍然不可访问,请尝试访问stop
和restart
rabbitmq服务器。
以下是参考链接:
发布于 2022-01-04 11:52:33
要回答这些问题:
不知道为什么我不能通过默认端口访问管理页面。 启动RabbitMQ服务器后仍不能访问localhost:5762
如果rabbitmqctl status
/ rabbitmq-diagnostics status
命令显示如下所示的侦听器:
Interface: [::], port: 15672, protocol: http, purpose: HTTP API
然后正确设置RabbitMQ 威力。
可能的理由: Http重定向
问题可能是访问的URL。Chrome可以被设置为将HTTP重定向到HTTPS。如果是这样,而且您没有HTTPS侦听器设置,那么您将看到一个ERR_SSL_PROTOCOL_ERROR
。为了解决这个问题,您可以禁用Chrome上的重定向功能,仅适用于localhost
。这样做,http://localhost:15672将不再被重定向到https://localhost:15672,因此管理web客户端将是可见的。
多么禁用Chrome域的HTTP重定向
chrome://net-internals/#hsts
localhost
)Delete
按钮https://stackoverflow.com/questions/59078203
复制相似问题