rabbitmq Socket error: could not connect to host

created at 07-05-2021 views: 1

description

error message when install AMQP through docker:

ConnectionException: Socket error: could not connect to host

solution

If it is installed by docker, map port 5672 out

docker run -d --hostname my-rabbit --name some-rabbit -p 8080:15672 -p 55672:5672 rabbitmq:3-management

This way, no error will be reported.

Please log in to leave a comment.