rabbitMQ访客登录失败 [英] rabbitMQ guest login failed

查看:294
本文介绍了rabbitMQ访客登录失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Windows中设置了RabbitMQ及其管理plubin,

I have setted up rabbitMQ and its management plubin in windows,

我在

"... AppData \ Roaming \ RabbitMQ"和"C:\ Program Files(x86)\ RabbitMQ Server \ rabbitmq_server-3.3.1 \ etc"

" ...AppData\Roaming\RabbitMQ " and " C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.3.1\etc "

我将{loopback_users,[]}行添加到此rabbitmq.config文件中,然后重新启动Windows服务,但仍然无法使用来宾/来宾从另一台计算机登录

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?

以下是一些相关的讨论: 如何公开访问RabbitMq http://www.rabbitmq.com/access-control.html

Here is some relevant discussion: How to access RabbitMq publicly http://www.rabbitmq.com/access-control.html

推荐答案

RabbitMQ服务无法读取配置文件,这就是问题所在.因此,您的配置文件未加载.

RabbitMQ service can't read the configuration file, this is the problem. So, your configuration file is not loaded.

如果从命令提示符处执行rabbitmq-server.bat,则路径"..AppData\Roaming\RabbitMQ"仅在有效有效,而在执行服务时无效.

The path "..AppData\Roaming\RabbitMQ" is valid only if you execute rabbitmq-server.bat from the command prompt and not if you execute a service.

要使用Windows Service,必须在Windows中配置环境变量RABBITMQ_CONFIG_FILE.

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

为:

然后,您必须卸载并重新安装rabbitmq,它才能正常工作.

Then you have to uninstall and re-install rabbitmq and it works.

请阅读讨论

我在Windows7上使用Rabbitmq 3.3.1进行了尝试,它使用guest/guest正确运行. 我的配置文件是:

I tried on windows7 with rabbitmq 3.3.1, it works corretly using guest/guest. My configuration file is:

[{,[{loopback_users,[]}]}}].

[{, [{loopback_users, []}]}].

这篇关于rabbitMQ访客登录失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆