如何找到RabbitMQ URL? [英] How to find RabbitMQ URL?

查看:261
本文介绍了如何找到RabbitMQ URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

兔子MQ URL如下:

Rabbit MQ URL looks like :

BROKER_URL: "amqp://user:password@remote.server.com:port//vhost"

目前尚不清楚我们在哪里可以找到RabbitMQ的URL,登录名和密码当我们需要从远程工作人员(Localhost外部)访问时.

This is not clear where we can find the URL, login and password of RabbitMQ when we need to acccess from remote worker (outside of Localhost).

以其他方式,如何从Celery/RabbitMQ设置RabbitMQ IP地址,登录名和密码

In other way, how to set RabbitMQ IP adress, login and password from Celery / RabbitMQ

推荐答案

您可以创建新用户来访问RabbitMQ代理.通常使用的端口是5672,但是您可以在配置文件中对其进行更改.

You can create new user for accessing your RabbitMQ broker. Normally port used is 5672 but you can change it in your configuration file.

因此,假设您的IP为1.1.1.1,并且使用密码测试创建了用户测试,并且您想要访问虚拟主机"dev"(不带引号),那么它将看起来像这样:

So suppose your IP is 1.1.1.1 and you created user test with password test and you want to access vhost "dev" (without quotes) then it will look something like this:

amqp://test:test@1.1.1.1:5672/dev

amqp://test:test@1.1.1.1:5672/dev

我建议启用RabbitMQ管理插件以在RabbitMQ周围播放. https://www.rabbitmq.com/management.html

I will recommend to enable RabbitMQ Management Plugin to play around RabbitMQ. https://www.rabbitmq.com/management.html

这篇关于如何找到RabbitMQ URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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