Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find RabbitMQ URL?

Rabbit MQ URL looks like :

BROKER_URL: "amqp://user:[email protected]: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

like image 397
tensor Avatar asked Dec 04 '16 10:12

tensor


People also ask

What is the URL for RabbitMQ?

If you have RabbitMQ installed on localhost, go to http://localhost:15672/ to find the management page.

How do I find my RabbitMQ hostname?

Default hostname and home The default hostname of RabbitMQ is set to rabbitmq@SERVER-IP and the default home is /opt/bitnami/rabbitmq/rabbitmq_home. Change this in the /opt/bitnami/rabbitmq/etc/rabbitmq/rabbitmq-env. conf file.

How do I access local RabbitMQ?

local, it can be accessed by users with sufficient privileges at either http://warp10.local:15672/ or http://localhost:15672/ (provided that localhost resolves correctly). Note that the UI and HTTP API port — typically 15672 — does not support AMQP 0-9-1, AMQP 1.0, STOMP or MQTT connections.

How do I connect to RabbitMQ host?

To connect to RabbitMQ from a different machine, you must open ports 5672 and 5672 for remote access. Refer to the FAQ for more information on this. IMPORTANT: Making this application's network ports public is a significant security risk.


1 Answers

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:[email protected]:5672/dev


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

like image 87
kleash Avatar answered Oct 04 '22 06:10

kleash