rabbitmq报错:inequivalent arg 'durable' for queue 'hello' in vhost '/': received '

237 阅读1分钟

rabbitmq报错

inequivalent arg 'durable' for queue 'hello' in vhost '/': received 'true' but current is 'false', class-id=50, method-id=10)

如图

image.png

原因

原因:之前声明的队列不是持久化的,需要把原先队列先删除,或者重新创建一个持久化的队列,不然就会出现错误
删除之后新建队列即可

image.png

image.png

参考

rabbitmq报错:inequivalent arg ‘durable‘ for queue ‘ack_queue‘ in vhost ‘/‘: received ‘true‘ but curren_inequivalent arg 'durable' for queue 'cia.tran' in-CSDN博客