[Solved] Rabbitmq Warning: java.net.SocketException: socket closed

Abnormal log appears in the background:

java.net.SocketException: socket closed

crcimpl.ForgivingExceptionHandler An unexpected connection driver error occured

Note:

RabbitMQ will open 3 ports, 5672, 15672, 25672, of which 5672 is used to provide message queue service, 15672 is used to enable background http access,
and 15672 is not opened by default.

1. Open port 5672 on the server.

Open port 5672:
firewall-cmd –zone=public –add-port=5672/tcp –permanent
Reload:
firewall-cmd –reload

2. Modify the port in the project to 5672

spring:
application:
name: config-client
rabbitmq:
host: localhost
port: 5672
username: admin
password: 123456
virtual-host: /
3. The user has operation authority on the virtual host.

Read More: