[rabbitmq-discuss] How to bind Rabbitmq and management to specific IP

Michael Klishin mklishin at gopivotal.com
Tue Feb 18 07:52:53 GMT 2014


On 18 Feb 2014, at 11:41, Huang Tonglang <tlhuang at 800best.com> wrote:

> The command I use is:
> RABBITMQ_NODE_IP_ADDRESS="10.8.9.161” RABBITMQ_NODE_PORT=9672 RABBITMQ_SERVER_START_ARGS="-rabbitmq_management listener [{port,19672},{ip,“10.8.9.161"}]" RABBITMQ_NODENAME=master_4  rabbitmq-server -detached
>  
> The error I get is:
>  
> =ERROR REPORT==== 18-Feb-2014::23:27:05 ===
> application_controller: syntax error before: '.': [{port,19672},{ip,10.8.9.161}]

You need to correct quoting. This works for me:

RABBITMQ_SERVER_START_ARGS="-rabbitmq_management listener [{port,15672},{ip,\"127.0.0.1\"}]" RABBITMQ_NODE_IP_ADDRESS="127.0.0.1" rabbitmq-server

Note that having spaces between port, port number or the port and IP tuples leads to failures.

MK

Software Engineer, Pivotal/RabbitMQ




More information about the rabbitmq-discuss mailing list