问题
[ERROR] [AMQP Connection 192.168.78.128:5672] [o.s.a.rabbit.connection.CachingConnectionFactory] [1199] - Channel shutdown: connection error; protocol method: #method<connection.close>(reply-code=503, reply-text=COMMAND_INVALID - unknown exchange type 'x-delayed-message', class-id=40, method-id=10)
解决
- 下载插件
https://dl.bintray.com/rabbitmq/community-plugins/3.6.x/rabbitmq_delayed_message_exchange/ - 安装插件
将下载的插件解压,放到RabbitMQ的plugin目录下 - 启用插件
rabbitmq-plugins enable rabbitmq_delayed_message_exchange
网友评论