解决rabbitmq 启动报错 Caused by: com.rabbitmq.client.ShutdownSignalException

 

 

报错信息如下:

 

Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; reason: {#method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - cannot redeclare exchange 'defaultExchange' in vhost '/' with different type, durable, internal or autodelete value, class-id=40, method-id=10), null, ""}

 

 

原因:

       rabbitmq服务通道是持久通道,该queue 已经存在, 而且通道属性跟最近修改后的属性不一致,而导致无法更新queue. 

 

解决办法:

       进入rabbitmq-management 将queue删除即可.

你可能感兴趣的:(exception)