Spring RabbitMQ tutorial results in Connection Refused error

99封情书 提交于 2019-12-05 19:01:16

You do not have RabbitMQ server installed. Luckily this is pretty easy to do. You mentioned you are using CentOS, here you can download RabbitMQ server: https://www.rabbitmq.com/install-rpm.html

There are a couple of steps you will need to follow, including installing Erlang.

The Spring example assumes you already know a bit about using a message broker. This is in itself a technology you will need to use, like when you had to learn to use a database or an operating system.

This is an old question but I'll post my answer anyway as it addresses an issue with this particular step of the Spring tutorial that the other answer doesn't.

If you are using the docker-compose.yml file specified in the Spring tutorial to launch a RabbitMQ server in a Docker container you might run into the same issue I had connecting to it, which I outlined in this question;

Docker image for Spring/RabbitMQ tutorial results in connection refused

After coming back to it a couple of days later though I managed to find the solution;

https://stackoverflow.com/a/44882772/8215811

The Spring tutorial unfortunately does not clarify that you need to configure connection information when choosing using the docker-compose file over the manual installation of RabbitMQ, which is unfortunate as the Docker method seems easier and more straightforward.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!