RabbitMQ 3.3.1 无法使用访客/访客登录 [英] RabbitMQ 3.3.1 can not login with guest/guest

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

问题描述

我已经在 VPS Debian Linux 机器上安装了最新版本的 RabbitMQ.尝试通过访客/访客登录,但返回消息登录失败.我做了一些研究,发现出于安全原因,它禁止通过访客/访客远程登录.

I have installed the latest version of RabbitMQ on a VPS Debian Linux box. Tried to get login through guest/guest but returned with the message login failed. I did a little research and found that for security reason its prohibited to get login via guest/guest remotely.

我还尝试通过手动创建 rabbitmq.config 文件(因为安装未创建文件)并仅放置以下条目,使此版本上的访客使用远程登录

I also have tried enabling guest uses on this version to get logged in remotely by creating a rabbitmq.config file manually (because the installation didn't create one) and placing the following entry only

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

使用以下命令重新启动rabbitmq.

after restart the rabbitmq with the following command.

invoke-rc.d rabbitmq-server stop -- to stop
invoke-rc.d rabbitmq-server start -- to start

它仍然没有让我以访客/访客身份登录.我也尝试在 Windows VPS 上安装 RabbitMQ 并尝试通过 localhost 通过访客/访客登录,但我再次收到相同的消息 login failed.

It still doesn't logged me in with guest/guest. I also have tried installing RabbitMQ on Windows VPS and tried to get log in via guest/guest through localhost but again i get the same message login failed.

还为我提供了一个源,我可以尝试安装旧版本的 RabbitMQ,它支持通过来宾/来宾远程记录.

Also provide me a source where I could try installing the old version of RabbitMQ that does support logging remotely via guest/guest.

推荐答案

我也遇到了同样的问题..

I had the same Problem..

我也安装了 RabbitMQ 并启用了 Web 界面,但仍然无法使用我新创建的任何用户登录,这是因为您需要成为管理员才能访问它.

I installed RabbitMQ and Enabled Web Interface also but still couldn't sign in with any user i newly created, this is because you need to be administrator to access this.

不要创建任何配置文件并弄乱它..

Do not create any config file and mess with it..

这就是我当时所做的,

  1. 添加一个新用户,比如用户 test 和密码 test:

rabbitmqctl add_user test test

  • 向新用户授予管理权限:

  • Give administrative access to the new user:

    rabbitmqctl set_user_tags test administrator
    

  • 为新创建的用户设置权限:

  • Set permission to newly created user:

    rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
    

  • 就是这样,享受:)

    这篇关于RabbitMQ 3.3.1 无法使用访客/访客登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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