Spring cloud config 客户端连接RabbitMQ 报 socket closed

java.net.SocketException: socket closed

    at java.net.SocketInputStream.socketRead0(Native Method)

    at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)

    at java.net.SocketInputStream.read(SocketInputStream.java:170)

    at java.net.SocketInputStream.read(SocketInputStream.java:141)

    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)

    at java.io.BufferedInputStream.read(BufferedInputStream.java:265)

    at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:288)

    at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:91)

    at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:164)

    at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:578)

    at java.lang.Thread.run(Thread.java:745)

查了百度,发现果然还是端口错误,mark一下

rabbitmq服务请求就是要用port=5672,而不是15672

你可能感兴趣的:(java,java)