RabbitMQ accepting connections but closing them before accepting any input

前端 未结 2 1980
粉色の甜心
粉色の甜心 2021-01-15 15:39

So I just installed the latest version of rabbitmq and I\'ve been trying to get it to work. The server is running and I\'ve restarted it once just to be sure it\'s a consist

相关标签:
2条回答
  • 2021-01-15 15:55

    I ran into the same issue, using Ubuntu(16.04) as a subsystem on Windows and rabbitmq 3.7.8. I noticed that when running sudo rabbitmqctl status the listeners showed the following:

    {listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]}
    

    I fixed this issue by creating a rabbitmq config file and specifying the localhost and port 5762

    Here is what i did step by step.

    1. Using sudo && vim, I created a 'rabbitmq.conf' file, located in /etc/rabbitmq/

      sudo vim /etc/rabbimq/rabbitmq.conf
      
    2. I specified the localhost(127.0.0.1) and port(5672) for the default tcp listener in the rabbitmq.conf file

      listeners.tcp.default = 127.0.0.1:5672
      
    3. Restart rabbitmq

      sudo service rabbitmq-server stop

      then

      sudo service rabbitmq-server start

    4. Check sudo rabbitmqctl status and look at the listeners, you should see your new tcp listener with the localhost ip sepcified

      {listeners,[{clustering,25672,"::"},{amqp,5672,"127.0.0.1"}]}

    Here is the config docs from rabbitmq that may help clarify some of these steps.

    0 讨论(0)
  • 2021-01-15 16:07

    Telnet lets you confirm the system is listening and allows incoming connections. But even an "out of the box" install of RabbitMQ expects credentials for connections.

    rabbitmqctl list_users to see which users are configured.

    If guest present, typical creds are guest / guest

    Either install management plugin (or confirm it is installed), or script your test, most languages have a package available for connecting to RabbitMQ.

    0 讨论(0)
提交回复
热议问题