全新安装后无法访问RabbitMQ Web管理界面 [英] Can't access RabbitMQ web management interface after fresh install

查看:53
本文介绍了全新安装后无法访问RabbitMQ Web管理界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经根据 官方网站上的说明.

我之前在开发过程中已经做过很多次了,从来没有出现过任何问题.但是,这次我无法使用默认的访客/访客用户登录管理 Web 界面.

I've done this many times before during development and never had any issues. However, this time I cannot log into the management web interface using the default guest/guest user.

在日志中,我看到以下内容:

In the logs, I see the following:

=ERROR REPORT==== 4-Apr-2014::00:55:15 ===
webmachine error: path="api/whoami"
"Unauthorized"

这可能是什么原因造成的?

What could be causing this?

推荐答案

这是自 3.3.0 版本以来的新功能http://www.rabbitmq.com/release-notes/README-3.3.0.txt

It's new features since the version 3.3.0 http://www.rabbitmq.com/release-notes/README-3.3.0.txt

server
------

...
25603 prevent access using the default guest/guest credentials except via
      localhost.

如果您想启用访客用户阅读this 或 this RabbitMQ 3.3.1 无法使用来宾/来宾登录 >

If you want enable the guest user read this or this RabbitMQ 3.3.1 can not login with guest/guest

# remove guest from loopback_users in rabbitmq.config like this
[{rabbit, [{loopback_users, []}]}].
# It is danger for default user and default password for remote access
# better to change password 
rabbitmqctl  change_password guest NEWPASSWORD

如果您想创建具有管理员权限的新用户:

If you want create a new user with admin grants:

rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"

现在您可以使用 test test 访问了.

Now you can access using test test.

这篇关于全新安装后无法访问RabbitMQ Web管理界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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