Thursday, July 17, 2014

How to make rabbitmq runs on localhost only

If you don't care about rabbitmq clustering like I do, you can setup rabbitmq to listen connections from localhost only:


$ sudo nano /etc/rabbitmq/rabbitmq-env.conf


RABBITMQ_NODE_PORT=5672
RABBITMQ_NODE_IP_ADDRESS=127.0.0.1
RABBITMQ_NODENAME=rabbit@myhostname

(RabbitMQ 3.3.4)

References: