RabbitMQ-用户'guest'对虚拟主机'XXX'的访问被拒绝 [英] RabbitMQ - access to vhost 'XXX' refused for user 'guest'
问题描述
我正在使用RabbitMQ 3.0.3版本.该服务在过去4到5年内运行良好.最近,服务器上安装了一些更新补丁,并且服务停止响应.这是正在发生的事情:
I am using RabbitMQ 3.0.3 version. The service was working fine for last 4-5 years. Recently some updates patches were installed on the server and the Service stopped responding. This is what is happening:
- RabbitMQ服务(Windows服务)正在运行,但没有响应.
- 在日志文件中,我看到错误
access to vhost 'XXX' refused for user 'guest'
- 管理控制台引发站点无法到达错误
我在这里有什么选择?我的代码开始失败,因此无法更新RabbitMQ版本.我没有尝试重新安装该服务.
What options do I have here? I cannot update RabbitMQ version as my code starts to fail. I have not tried reinstalling the service.
我正在使用RabbitMQ 3.0.3-如何请求甚至从远程计算机也可以访问guest
帐户. rabbitmq.conf
文件仅在版本3.7.0之后出现
I am using RabbitMQ 3.0.3 - How can I request guest
account to be accessible even from remote machine. rabbitmq.conf
file only appeared after version 3.7.0
推荐答案
我并不是说这是正确的答案,但这是我为解决此问题所做的事情.
I am not saying this is the right answer but this is what I did to fix this issue.
令人困惑的部分: RabbitMQ说不允许Guest
帐户从远程计算机访问RabbitMQ.我正在使用RabbitMQ 3.0.3,并且能够使用Guest
帐户从远程计算机访问RabbitMQ.我不确定他们是否在以后的版本中进行了此更改.
Confusing part: RabbitMQ says Guest
account is not allowed to access RabbitMQ from a remote machine. I am using RabbitMQ 3.0.3 and I am able to access RabbitMQ from remote machine using Guest
account. I am not sure if they made this change in a later version.
我已解决:
- 打开RabbitMQ管理控制台.
- 点击虚拟主机
- 创建虚拟主机(命名并单击添加虚拟主机按钮).
The name of Virtual host was same as the one I saw in error message "access to vhost 'XXX' refused for user 'guest'"
- 将虚拟主机的访问权限授予来宾帐户.
- Opened RabbitMQ management console.
- Clicked on Virtual Host
- Created the Virtual host (gave a name and clicked on Add Virtual host button).
The name of Virtual host was same as the one I saw in error message "access to vhost 'XXX' refused for user 'guest'"
- Gave permission to that virtual host to guest account.
这篇关于RabbitMQ-用户'guest'对虚拟主机'XXX'的访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!