2016-11-10 164 views
0

無法連接到內部Rabbit MQ實例。收到以下錯誤:無法連接到rabbitmq

The AMQP operation was interrupted: AMQP close-reason, initiated by Library, code=541, text="Unexpected Exception", classId=0, methodId=0, cause=System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host 
    at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) 
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) 
    --- End of inner exception stack trace --- 
    at RabbitMQ.Client.Impl.Frame.ReadFrom(NetworkBinaryReader reader) 
    at RabbitMQ.Client.Impl.SocketFrameHandler_0_9.ReadFrame() 
    at RabbitMQ.Client.Impl.ConnectionBase.MainLoopIteration() 
    at RabbitMQ.Client.Impl.ConnectionBase.MainLoop() 

難道是我的防火牆阻塞了所需的端口嗎?

回答

0

好的,問題解決了。不知道是否對某人有幫助,但:有一箇舊的MassTransit(RabbitMQ客戶端)版本,需要在URI中設置不僅僅是虛擬主機,而且還要設置隊列地址。

相關問題