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

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

问题描述

Rabbit MQ URL 如下所示:

Rabbit MQ URL looks like :

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

这个不清楚我们在哪里可以找到RabbitMQ的URL、登录名和密码当我们需要从远程工作人员(本地主机之外)访问时.

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,并且您使用密码 test 创建了用户 test,并且您想访问 vhost "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天全站免登陆