本问题的解决方案请见:https://www.cnblogs.com/heyang78/p/15249503.html
RabbitMQ服务器架设在T440p上,IP为192.168.0.105,端口5672,本机SpringBootAPP收发消息自如。
在T14上建立一个消费者,准备接收队列Queue01中的消息,IP为192.168.0.101,使用的是新创建的用户,不是guest。
但一直出现下面故障:
故障信息:
2021-09-09 10:45:45.455 INFO 2388 --- [tContainer#0-17] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [192.168.0.105:5672] 2021-09-09 10:46:11.602 WARN 2388 --- [tContainer#0-17] o.s.a.r.l.SimpleMessageListenerContainer : Consumer raised exception, processing can restart if the connection factory supports it. Exception summary: org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection timed out: no further information 2021-09-09 10:46:11.604 INFO 2388 --- [tContainer#0-17] o.s.a.r.l.SimpleMessageListenerContainer : Restarting Consumer@43fa7e0a: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
关键三句:
Attempting to connect to: [192.168.0.105:5672] Consumer raised exception, processing can restart if the connection factory supports it. Exception summary: org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection timed out: no further information Restarting Consumer@43fa7e0a: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
遇到同样问题的网友请参考:https://www.cnblogs.com/heyang78/p/15249503.html