当前位置: 首页 > article >正文

docker-compose安装rabbitmq 并开启延迟队列和管理面板插件(rabbitmq_delayed_message_exchange)

问题:

解决rabbitmq-plugins enable rabbitmq_delayed_message_exchange
:plugins_not_found

我是在docker-compose环境部署的

services:
  rabbitmq:
    image: rabbitmq:4.0-management
    restart: always
    container_name: rabbitmq
    ports:
      - 5672:5672
      - 15672:15672
    environment:
      RABBITMQ_DEFAULT_USER: rabbit
      RABBITMQ_DEFAULT_PASS: 123456
    volumes:
      - ./rabbitmq/data:/var/lib/rabbitmq
      - ./rabbitmq/conf:/etc/rabbitmq
      - ./rabbitmq/plugins/rabbitmq_delayed_message_exchange-3.13.0.ez:/plugins/rabbitmq_delayed_message_exchange-3.13.0.ez
    networks:
      pay_net:
        ipv4_address: ${PY_SUBNET_PREFIX}.15

插件地址:
https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases

wget https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/v3.13.0/rabbitmq_delayed_message_exchange-3.13.0.ez
root@a5fd210b7eb1:/plugins# rabbitmq-plugins enable rabbitmq_delayed_message_exchange-3.13.0.ez
Enabling plugins on node rabbit@a5fd210b7eb1:
rabbitmq_delayed_message_exchange-3.13.0.ez
Error:
{:plugins_not_found, [:"rabbitmq_delayed_message_exchange-3.13.0.ez"]}

在这里插入图片描述
解决步骤:

  1. 挂载进去后,到 rabbbitmq容器的 /opt/rabbitmq/sbin 目录下去
  2. 执行./rabbitmq-plugins enable rabbitmq_delayed_message_exchange
    而不是./rabbitmq-plugins enable rabbitmq_delayed_message_exchange-3.13.0.ez
root@a5fd210b7eb1:/opt/rabbitmq/sbin# ./rabbitmq-plugins enable rabbitmq_delayed_message_exchange-3.13.0.ez
Enabling plugins on node rabbit@a5fd210b7eb1:
rabbitmq_delayed_message_exchange-3.13.0.ez
Error:
{:plugins_not_found, [:"rabbitmq_delayed_message_exchange-3.13.0.ez"]}
root@a5fd210b7eb1:/opt/rabbitmq/sbin# ./rabbitmq-plugins enable rabbitmq_delayed_message_exchange
Enabling plugins on node rabbit@a5fd210b7eb1:
rabbitmq_delayed_message_exchange
The following plugins have been configured:
  rabbitmq_delayed_message_exchange
Applying plugin configuration to rabbit@a5fd210b7eb1...
The following plugins have been enabled:
  rabbitmq_delayed_message_exchange

started 1 plugins.
root@a5fd210b7eb1:/opt/rabbitmq/sbin# pwd
/opt/rabbitmq/sbin

management

root@a5fd210b7eb1:/opt/rabbitmq/sbin# ./rabbitmq-plugins enable rabbitmq_management
Enabling plugins on node rabbit@a5fd210b7eb1:
rabbitmq_management
The following plugins have been configured:
  rabbitmq_delayed_message_exchange
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch
Applying plugin configuration to rabbit@a5fd210b7eb1...
The following plugins have been enabled:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch

started 3 plugins.

http://www.kler.cn/a/379769.html

相关文章:

  • 【机器学习:八、逻辑回归】
  • 【C++入门】详解(中)
  • Vue 3 Diff 算法过程及基本实现方式
  • Harmony Next集成支付宝sdk失败
  • 2024-11-04 问AI: [AI面试题] 解释计算机视觉的概念
  • Linux/Unix grep命令
  • 实体(Entity)详解
  • Linux动态库和静态库
  • 分布式光伏管理办法
  • 批量转换图片格式(python学习)(11.3)
  • 宝藏虚拟化学习资料大全
  • 胡壮麟《语言学教程》第五版PDF英文版+中文版翻译
  • IDEA加载通义灵码插件及使用指南
  • Python小白学习教程从入门到入坑------第二十三课 封装(语法进阶)
  • 【STM32】STM32G431RBT6单片机的BOOT引脚位置及功能
  • 华为HarmonyOS打造开放、合规的广告生态 - 贴片广告
  • 关于wordpress instagram feed 插件 (现更名为Smash Balloon Social Photo Feed)
  • 使用OCC,输入一个三维的曲面body,和一个平面plane,如果平面plane与body有相交,输出相交结果左右两部分
  • 多线程和线程同步基础篇学习笔记(Linux)
  • 数据结构---链表实现双端队列
  • 小程序跳转另一个小程序
  • WiFi一直获取不到IP地址是怎么回事?
  • Spark中的宽窄依赖