最近在搞rabbitmq,把解决问题方法记下

问题1:PRECONDITION_FAILED - inequivalent arg 'type' for exchange 'exchange' in vhost '/': received 'direct

问题2:如下图

PRECONDITION_FAILED - inequivalent arg 'type' for exchange 'exchange' in vhost '/': received 'direct-LMLPHP

原因:一旦创建了exchange, RabbitMQ是不允许对其改变的,不然会报错

解决方法:

在web上Exchanges模块把之前的exchange删除。

PRECONDITION_FAILED - inequivalent arg 'type' for exchange 'exchange' in vhost '/': received 'direct-LMLPHP

05-26 20:45