当前位置:   article > 正文

【rabbitmq】搭建rabbitmq启用插件报错_rabbitmq 延迟插件不生效

rabbitmq 延迟插件不生效

配置

FROM rabbitmq:latest

MAINTAINER LUCKY

# 添加插件到指定目录 可按照此方式自行扩展其他插件
# https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases
ADD ./rabbitmq_delayed_message_exchange-3.12.0.ez /plugins

# 开启管理界面插件
RUN rabbitmq-plugins enable rabbitmq_management
# 开启延迟队列插件
RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange

ENTRYPOINT ["rabbitmq-server"]
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
version: '3.5'

services:
  rabbitmq:
    #restart: always
    container_name: rabbitmq
    build:
      context: .
    ports:
      - "15672:15672"
      - "5672:5672"
    volumes:
      - ./data:/var/lib/rabbitmq
      - ./logs:/var/log/rabbitmq
    environment:
      - RABBITMQ_DEFAULT_USER=admin
      - RABBITMQ_DEFAULT_PASS=123456
    network_mode: "bridge"
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18

错误

#8 [rabbitmq 4/4] RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange
#8 1.687 Enabling plugins on node rabbit@buildkitsandbox:
#8 1.687 rabbitmq_delayed_message_exchange
#8 2.111 Error:
#8 2.111 Failed to enable some plugins:
#8 2.111     rabbitmq_delayed_message_exchange:
#8 2.111         Plugin doesn't support current server version. Actual broker version: "3.9.11", supported by the plugin: ["3.11.0-3.11.x"]
#8 2.111
#8 ERROR: process "/bin/sh -c rabbitmq-plugins enable rabbitmq_delayed_message_exchange" did not complete successfully: exit code: 70
------
 > [rabbitmq 4/4] RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange:
1.687 Enabling plugins on node rabbit@buildkitsandbox:
1.687 rabbitmq_delayed_message_exchange
2.111 Error:
2.111 Failed to enable some plugins:
2.111     rabbitmq_delayed_message_exchange:
2.111         Plugin doesn't support current server version. Actual broker version: "3.9.11", supported by the plugin: ["3.11.0-3.11.x"]
2.111
------
failed to solve: process "/bin/sh -c rabbitmq-plugins enable rabbitmq_delayed_message_exchange" did not complete successfully: exit code: 70
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

解决

# 添加插件到指定目录 可按照此方式自行扩展其他插件
# https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases
ADD ./rabbitmq_delayed_message_exchange-3.12.0.ez /plugins
  • 1
  • 2
  • 3

参考

搭建rabbitmq并开启管理界面和延迟队列
centos7 docker安装rebbitmq及插件
rabbitmq rabbitmq-delayed-message-exchange Publi

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/459432
推荐阅读
相关标签
  

闽ICP备14008679号