问题
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