How to find RabbitMQ URL?

不羁的心 提交于 2021-02-07 03:19:34

问题


Rabbit MQ URL looks like :

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

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).

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


回答1:


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

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


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



来源:https://stackoverflow.com/questions/40957599/how-to-find-rabbitmq-url

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!