RabbitMQ-用户'guest'对虚拟主机'XXX'的访问被拒绝 [英] RabbitMQ - access to vhost 'XXX' refused for user 'guest'

查看:229
本文介绍了RabbitMQ-用户'guest'对虚拟主机'XXX'的访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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:

  1. RabbitMQ服务(Windows服务)正在运行,但没有响应.
  2. 在日志文件中,我看到错误access to vhost 'XXX' refused for user 'guest'
  3. 管理控制台引发站点无法到达错误

我在这里有什么选择?我的代码开始失败,因此无法更新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.

我已解决:

  1. 打开RabbitMQ管理控制台.
  2. 点击虚拟主机
  3. 创建虚拟主机(命名并单击添加虚拟主机按钮). The name of Virtual host was same as the one I saw in error message "access to vhost 'XXX' refused for user 'guest'"
  4. 将虚拟主机的访问权限授予来宾帐户.
  1. Opened RabbitMQ management console.
  2. Clicked on Virtual Host
  3. 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'"
  4. Gave permission to that virtual host to guest account.

这篇关于RabbitMQ-用户'guest'对虚拟主机'XXX'的访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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