美文网首页Java工作知识
RabbitMQ错误:x-delayed-message

RabbitMQ错误:x-delayed-message

作者: 谁家的猪 | 来源:发表于2019-07-04 07:54 被阅读13次

    问题

    [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)

    解决

    1. 下载插件
      https://dl.bintray.com/rabbitmq/community-plugins/3.6.x/rabbitmq_delayed_message_exchange/
    2. 安装插件
      将下载的插件解压,放到RabbitMQ的plugin目录下
    3. 启用插件
      rabbitmq-plugins enable rabbitmq_delayed_message_exchange

    相关文章

      网友评论

        本文标题:RabbitMQ错误:x-delayed-message

        本文链接:https://www.haomeiwen.com/subject/hapqhctx.html