Home / cs-notes / Architecture / Components / Message Queue / RabbitMQ / Problems / 5672 端口无法连接
- https://stackoverflow.com/questions/49285088/rabbitmq-accepting-connections-but-closing-them-before-accepting-any-input
If I telnet localhost 5672, I get
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
sudo rabbitmqctl status
{listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]}
sudo vim /etc/rabbimq/rabbitmq.conf
listeners.tcp.default = 127.0.0.1:5672
sudo service rabbitmq-server restart
{listeners,[{clustering,25672,"::"},{amqp,5672,"127.0.0.1"}]}