Binding external IP address to Rabbit MQ server

后端 未结 2 489
感情败类
感情败类 2021-02-08 18:27

I have box A and it has a consumer on it that listens on a Rabbit MQ server

I have box B that will publish a message to the listener

So as long as all of this in

相关标签:
2条回答
  • 2021-02-08 18:53

    did you try adding?

    RABBITMQ_NODE_IP_ADDRESS=box.a.ip.addy

    to the /etc/rabbitmq/rabbitmq.conf file?

    Per http://www.rabbitmq.com/configure.html#customise-general-unix-environment

    Also per this documentation it states that the default is to bind to all interfaces. Perhaps there is a configuration setting or environment variable already set in your system to restrict the server to localhost overriding anything else you do.

    UPDATE: After reading again I realize that the telnet should have returned "Connection Refused" not "No route to host." I would also check to see if you are having a firewall related issue.

    0 讨论(0)
  • 2021-02-08 18:58

    You need to open up the tcp port on your firewall

    Using Linux, Find the iptables config file:

    eric@dev ~$ find / -name "iptables" 2>/dev/null
    /etc/sysconfig/iptables
    

    Edit the file:

    sudo vi /etc/sysconfig/iptables
    

    Fix the file by adding a port:

    # Generated by iptables-save v1.4.7 on Thu Jan 16 16:43:13 2014
    *filter
    -A INPUT -p tcp -m tcp --dport 15672 -j ACCEPT
    COMMIT
    
    0 讨论(0)
提交回复
热议问题