rabbitmq 启动报错:
com.rabbitmq.client.ShutdownSignalException: channel error; reason: {#method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'durable' for queue 'workqueue' in vhost '/': received 'true' but current is 'false', class-id=50, method-id=10), null, ""}
原因:
因为在你的queue队列中已经存在了workqueue队列,而且该队列是非持久化的,这时启动rabbitmq就会报这个错误
解决方法:
1.修改启动时的queuename,比如改成workqueue2
或者:
2。在rabbitmq管理后台删除该workqueue ,我并没有删掉delete和purge 操作都试了一下,后来这个workqueue自己变成了持久化的队列了,也不知道是怎么回事。