rabbitMQ 访客登录失败 [英] rabbitMQ guest login failed
问题描述
我已经在windows中设置了rabbitMQ及其管理插件,
我在
的路径中发现了带有EXAMPLE FILE"类型的 rabbitmq.config 文件...AppDataRoamingRabbitMQ"和C:Program Files (x86)RabbitMQ Server abbitmq_server-3.3.1etc"
我将 {loopback_users, []} 行添加到这个 rabbitmq.config 文件中,然后重新启动 windows 服务,但仍然无法从另一台计算机使用 guest/guest 登录
我是否编辑了错误的配置文件?
以下是一些相关的讨论:
我在 windows7 上使用 rabbitmq 3.3.1 进行了尝试,它使用 guest/guest 可以正常工作.我的配置文件是:
<块引用>[{, [{loopback_users, []}]}].
I have setted up rabbitMQ and its management plubin in windows,
I found rabbitmq.config file with "EXAMPLE FILE" type in the path of
" ...AppDataRoamingRabbitMQ " and " C:Program Files (x86)RabbitMQ Server abbitmq_server-3.3.1etc "
I add the line {loopback_users, []} into this rabbitmq.config file, and restart the windows service, but still can't login from another computer with guest/guest
Am I editing the wrong config file?
Here is some relevant discussion: How to access RabbitMq publicly http://www.rabbitmq.com/access-control.html
RabbitMQ service can't read the configuration file, this is the problem. So, your configuration file is not loaded.
The path "..AppDataRoamingRabbitMQ"
is valid only if you execute rabbitmq-server.bat
from the command prompt and not if you execute a service.
In order to work with Windows Service
you have to configure the environment variable RABBITMQ_CONFIG_FILE
in windows.
Open Control Panel > System > Advanced > Environment Variables and then add:
RABBITMQ_CONFIG_FILE
path_your_configuration_file
as:
Then you have to uninstall and re-install rabbitmq and it works.
Please read this discussion
I tried on windows7 with rabbitmq 3.3.1, it works corretly using guest/guest. My configuration file is:
[{, [{loopback_users, []}]}].
这篇关于rabbitMQ 访客登录失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!