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

windows11下 podman-desktop 复制插件文件 到 RabbitMQ 容器内,并启用

目的: 刚启用的 RabbitMQ 容器,发现没有rabbitmq_delayed_message_exchange 插件,开始手动安装

官网

https://www.rabbitmq.com/community-plugins

https://github.com/rabbitmq/rabbitmq-delayed-message-exchange

下载rabbitmq_delayed_message_exchange-4.0.2.ez, 解压缩后目录是rabbitmq_delayed_message_exchange-4.0.2

查看 podman 虚拟机

podman machine list

输出

NAME                    VM TYPE     CREATED      LAST UP            CPUS        MEMORY      DISK SIZE
podman-machine-default  wsl         8 hours ago  Currently running  8           2GiB        100GiB

进入默认 podman 虚拟机

podman machine ssh

查看 盘符映射

ls -asl /mnt

查看 虚拟机内 podman 容器

podman ps

输出

CONTAINER ID  IMAGE                                    COMMAND          CREATED      STATUS      PORTS
             NAMES
045723fe3135  docker.io/library/rabbitmq:4-management  rabbitmq-server  5 hours ago  Up 5 hours  0.0.0.0:5672->5672/tcp, 0.0.0.0:15672->15672/tcp, 4369/tcp, 5671/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp  rabbitmq

复制文件

我的文件是在dwork 目录下rabbitmq_delayed_message_exchange-4.0.2
那么 在 虚拟机内的目录是 /mnt/d/work/rabbitmq_delayed_message_exchange-4.0.2

 podman cp /mnt/d/work/rabbitmq_delayed_message_exchange-4.0.2 045723fe3135:/opt/rabbitmq/plugins/

进入容器内

podman exec -it rabbitmq bash

查看

cd /opt/rabbitmq/plugins/
ls -asl

输出

README                         rabbit-4.0.5                             rabbitmq_recent_history_exchange-4.0.5
accept-0.3.5                   rabbit_common-4.0.5                      rabbitmq_sharding-4.0.5
amqp10_client-4.0.5            rabbitmq_amqp1_0-4.0.5                   rabbitmq_shovel-4.0.5
amqp10_common-4.0.5            rabbitmq_auth_backend_cache-4.0.5        rabbitmq_shovel_management-4.0.5
amqp_client-4.0.5              rabbitmq_auth_backend_http-4.0.5         rabbitmq_shovel_prometheus-4.0.5
aten-0.6.0                     rabbitmq_auth_backend_ldap-4.0.5         rabbitmq_stomp-4.0.5
base64url-1.0.1                rabbitmq_auth_backend_oauth2-4.0.5       rabbitmq_stream-4.0.5
cowboy-2.12.0                  rabbitmq_auth_mechanism_ssl-4.0.5        rabbitmq_stream_common-4.0.5
cowlib-2.13.0                  rabbitmq_aws-4.0.5                       rabbitmq_stream_management-4.0.5
credentials_obfuscation-3.4.0  rabbitmq_consistent_hash_exchange-4.0.5  rabbitmq_top-4.0.5
cuttlefish-3.4.0               rabbitmq_event_exchange-4.0.5            rabbitmq_tracing-4.0.5
eetcd-0.3.6                    rabbitmq_federation-4.0.5                rabbitmq_trust_store-4.0.5
enough-0.1.0                   rabbitmq_federation_management-4.0.5     rabbitmq_web_dispatch-4.0.5
gen_batch_server-0.8.8         rabbitmq_federation_prometheus-4.0.5     rabbitmq_web_mqtt-4.0.5
getopt-1.0.3                   rabbitmq_jms_topic_exchange-4.0.5        rabbitmq_web_mqtt_examples-4.0.5
gun-1.3.3                      rabbitmq_management-4.0.5                rabbitmq_web_stomp-4.0.5
horus-0.3.1                    rabbitmq_management_agent-4.0.5          rabbitmq_web_stomp_examples-4.0.5
jose-1.11.10                   rabbitmq_mqtt-4.0.5                      ranch-2.1.0
khepri-0.16.0                  rabbitmq_peer_discovery_aws-4.0.5        recon-2.5.6
khepri_mnesia_migration-0.7.1  rabbitmq_peer_discovery_common-4.0.5     redbug-2.1.0
oauth2_client-4.0.5            rabbitmq_peer_discovery_consul-4.0.5     seshat-0.6.1
amqp_client-4.0.5              rabbitmq_auth_backend_ldap-4.0.5         rabbitmq_stomp-4.0.5
aten-0.6.0                     rabbitmq_auth_backend_oauth2-4.0.5       rabbitmq_stream-4.0.5
base64url-1.0.1                rabbitmq_auth_mechanism_ssl-4.0.5        rabbitmq_stream_common-4.0.5
cowboy-2.12.0                  rabbitmq_aws-4.0.5                       rabbitmq_stream_management-4.0.5
cowlib-2.13.0                  rabbitmq_consistent_hash_exchange-4.0.5  rabbitmq_top-4.0.5
credentials_obfuscation-3.4.0  rabbitmq_delayed_message_exchange-4.0.2  rabbitmq_tracing-4.0.5
cuttlefish-3.4.0               rabbitmq_event_exchange-4.0.5            rabbitmq_trust_store-4.0.5
eetcd-0.3.6                    rabbitmq_federation-4.0.5                rabbitmq_web_dispatch-4.0.5
enough-0.1.0                   rabbitmq_federation_management-4.0.5     rabbitmq_web_mqtt-4.0.5
gen_batch_server-0.8.8         rabbitmq_federation_prometheus-4.0.5     rabbitmq_web_mqtt_examples-4.0.5
getopt-1.0.3                   rabbitmq_jms_topic_exchange-4.0.5        rabbitmq_web_stomp-4.0.5
gun-1.3.3                      rabbitmq_management-4.0.5                rabbitmq_web_stomp_examples-4.0.5
horus-0.3.1                    rabbitmq_management_agent-4.0.5          ranch-2.1.0
jose-1.11.10                   rabbitmq_mqtt-4.0.5                      recon-2.5.6
khepri-0.16.0                  rabbitmq_peer_discovery_aws-4.0.5        redbug-2.1.0
khepri_mnesia_migration-0.7.1  rabbitmq_peer_discovery_common-4.0.5     seshat-0.6.1
oauth2_client-4.0.5            rabbitmq_peer_discovery_consul-4.0.5     stdout_formatter-0.2.4
observer_cli-1.7.5             rabbitmq_peer_discovery_etcd-4.0.5       syslog-4.0.0
osiris-1.8.5                   rabbitmq_peer_discovery_k8s-4.0.5        sysmon_handler-1.3.0
prometheus-4.11.0              rabbitmq_prelaunch-4.0.5                 systemd-0.6.1
quantile_estimator-0.2.1       rabbitmq_prometheus-4.0.5                thoas-1.2.1
ra-2.14.0                      rabbitmq_random_exchange-4.0.5
rabbit-4.0.5                   rabbitmq_recent_history_exchange-4.0.5

启用插件

rabbitmq-plugins enable rabbitmq_delayed_message_exchange

查看插件是否启用

Listing plugins with pattern ".*" ...
 Configured: E = explicitly enabled; e = implicitly enabled
 | Status: * = running on rabbit@045723fe3135
 |/
[  ] rabbitmq_amqp1_0                  4.0.5
[  ] rabbitmq_auth_backend_cache       4.0.5
[  ] rabbitmq_auth_backend_http        4.0.5
[  ] rabbitmq_auth_backend_ldap        4.0.5
[  ] rabbitmq_auth_backend_oauth2      4.0.5
[  ] rabbitmq_auth_mechanism_ssl       4.0.5
[  ] rabbitmq_consistent_hash_exchange 4.0.5
[E*] rabbitmq_delayed_message_exchange 4.0.2
[  ] rabbitmq_event_exchange           4.0.5
[  ] rabbitmq_federation               4.0.5
[  ] rabbitmq_federation_management    4.0.5
[  ] rabbitmq_federation_prometheus    4.0.5
[  ] rabbitmq_jms_topic_exchange       4.0.5
[E*] rabbitmq_management               4.0.5
[e*] rabbitmq_management_agent         4.0.5
[  ] rabbitmq_mqtt                     4.0.5
[  ] rabbitmq_peer_discovery_aws       4.0.5
[  ] rabbitmq_peer_discovery_common    4.0.5
[  ] rabbitmq_peer_discovery_consul    4.0.5
[  ] rabbitmq_peer_discovery_etcd      4.0.5
[  ] rabbitmq_peer_discovery_k8s       4.0.5
[E*] rabbitmq_prometheus               4.0.5
[  ] rabbitmq_random_exchange          4.0.5
[  ] rabbitmq_recent_history_exchange  4.0.5
[  ] rabbitmq_sharding                 4.0.5
[  ] rabbitmq_shovel                   4.0.5
[  ] rabbitmq_shovel_management        4.0.5
[  ] rabbitmq_shovel_prometheus        4.0.5
[  ] rabbitmq_stomp                    4.0.5
[  ] rabbitmq_stream                   4.0.5
[  ] rabbitmq_stream_management        4.0.5
[  ] rabbitmq_top                      4.0.5
[  ] rabbitmq_tracing                  4.0.5
[  ] rabbitmq_trust_store              4.0.5
[e*] rabbitmq_web_dispatch             4.0.5
[  ] rabbitmq_web_mqtt                 4.0.5
[  ] rabbitmq_web_mqtt_examples        4.0.5
[  ] rabbitmq_web_stomp                4.0.5
[  ] rabbitmq_web_stomp_examples       4.0.5

安装 rabbitmq

podman run -itd --name=rabbitmq \
-p 15672:15672 \
-p 5672:5672 \
-e RABBITMQ_DEFAULT_USER=admin \
-e RABBITMQ_DEFAULT_PASS=admin \
rabbitmq:4-management

-itd:以交互模式启动容器并在后台运行。
–name=rabbitmq:为容器指定一个名称。
-v /d/docker/rabbitmq:/var/lib/rabbitmq:目录挂载
-p 15672:15672:管理端口
-p 5672:5672:消息接收端口
-e RABBITMQ_DEFAULT_USER=admin:用户名
-e RABBITMQ_DEFAULT_PASS=admin:密码


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

相关文章:

  • 前端web
  • ORB-SLAM2源码学习: Frame.cc: cv::Mat Frame::UnprojectStereo将某个特征点反投影到三维世界坐标系中
  • VUE学习笔记4__安装开发者工具
  • 机器学习第一道菜(一):线性回归的理论模型
  • 【JavaEE进阶】SpringMVC 响应
  • 【2024年华为OD机试】 (C卷,100分)- 用连续自然数之和来表达整数(Java JS PythonC/C++)
  • 安全规约、脱敏规范、敏感逻辑的保护方案、防止 SQL 注入
  • 25/1/16 嵌入式笔记 STM32F108
  • C语言结构体漫谈:从平凡中见不平凡
  • 《基于深度学习的多色光度巡天项目天文目标检测框架》论文精读
  • 1 使用EMIO
  • 【Axure】配色库
  • 5、docker-compose和docker-harbor
  • 电池预测 | 第21讲 基于Gamma伽马模型结合EM算法和粒子滤波算法参数估计的锂电池剩余寿命预测
  • python中自动化playwright录制功能跳过繁琐的系统登录操作
  • Git在add的时候出现error: unable to index file 的问题,导致add失败的问题解决
  • 大数据就业前景及待遇如何?
  • 打造更安全的Linux系统:玩转PAM配置文件
  • 为Hugo/Hexo设计的在线Markdown编辑器
  • Flutter 多终端测试 自定义启动画面​​​​​​​ 更换小图标和应用名称
  • RK3568-Linux应用学习记录
  • 复用类(2):代理、结合使用组合和继承
  • 三数之和力扣--15
  • Unity3d 实时天气系统基于UniStorm插件和xx天气API实现(含源码)
  • 音视频文件提供流式传输之HTTP Live Streaming (HLS)
  • SUN的J2EE与微软的DNA