RabbitMQ 3.3.1 不能用guest/guest登录 [英] RabbitMQ 3.3.1 can not login with guest/guest
问题描述
我已经在 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 并尝试通过来宾/来宾通过本地主机登录,但我再次收到相同的消息登录失败.
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 和 Enabled Web Interface,但仍然无法使用我新创建的任何用户登录,这是因为您需要成为管理员才能访问它.
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..
这就是我当时所做的,
添加一个新用户,比如用户
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 不能用guest/guest登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!