解决Spring Boot连接rabbitmq超时问题 hostnamectl查看Linux主机名 在 /etc/hosts文件中添加 127.0.0.1 bogon 重启mq service rabbitmq-server restart 连接成功