如何公开访问RabbitMq [英] How to access RabbitMq publicly
问题描述
我安装了&在Centos远程服务器上设置Rabbitmq。后来我创建了一个文件rabbitmq.config并添加了
I have installed & setup the Rabbitmq on Centos remote server. Later I created an file "rabbitmq.config" and added the line
[{rabbit,[{loopback_users,[]}]
[{rabbit, [{loopback_users, []}]}]
,然后重新启动rabbitmq服务器。再次尝试使用访客凭据从本地计算机登录rabbitmq管理Web界面,但获取
and then restarted the rabbitmq server. Again tried to login the rabbitmq management web interface from my local machine using the guest credentials, but getting
登录失败
login failed
错误消息。在Centos中为Rabbitmq清空环回用户设置的正确方法。
error message.What is the proper way to empty the loopback user settings for Rabbitmq in Centos.
推荐答案
首先,使用ssh客户端连接到你的rabbitmq服务器机器,以便能够运行 rabbitmqctl
(像puTTY)进入兔子安装的sbin目录
First of all connect to your rabbitmq server machine using ssh client so as to be able to run rabbitmqctl
(like puTTY) & get into the sbin directory of rabbit installation
- 您需要为该系统上的任何vhost创建一个用户(这里我使用默认vhost
/
)
- you need to create a user for any vhost on that system (here I use default vhost
"/"
)
$ rabbitmqctl add_user yourName yourPass
- 为该用户设置默认vhost的权限
$ rabbitmqctl set_permissions -p / yourName。*。*。*
- 设置此用户的管理员标签(以使他能够访问管理插件)
$ rabbitmqctl set_user_tags yourName administrator
...您可以使用 yourName
和 yourPass
从任何浏览器登录到您的rabbitmq管理gui $ c> http://*********:15672 其中 *****
是您的服务器IP
希望它有助于...
... and you are ready to login to your rabbitmq management gui using yourName
and yourPass
from any browser by pointing it to http://"*********":15672
where *****
is your server IP
hope it helps...
: - )
这篇关于如何公开访问RabbitMq的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!