1、查看 rabbitMq 的状态。
输入命令:rabbitmqctl status,发现没有报错,但是 rabbit 中的 host 是 root ,并不是 ip 地址,所以连接不上。
2、运行命令:echo 【ip地址】root >> /etc/hosts。
将 RabbitMQ 服务所在的 IP 地址添加到 /etc/hosts 中。
- unexpected connection RabbitMQ occured driverunexpected connection rabbitmq occured underlying connection unexpected occurred the administrator unexpected occurred unexpected occurred formula excel certificate unexpected occurred signed mysqli_connect caching_sha unexpected php attempting connection unresolved unexpected smtpserverdisconnected unexpectedly connection go-sql-driver connection invalid golang occurred