docker安装rabbitmq_delayed_message_exchange-3.10.2.ez ,不要下载成压缩文件,下载成压缩文件解压缩一下,
官方下载地址:https://www.rabbitmq.com/community-plugins.html和https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases
最好将rabbitmq_delayed_message_exchange-3.10.2.ez文件放置在虚拟机根目录下
赋值到rabbitmq 插件的位置
docker cp /root/rabbitmq_delayed_message_exchange-3.10.2.ez rabbitmq:/plugins
进入docker中
docker exec -it rabbit /bin/bash
查看插件是否安装到plugins文件
cd plugins
ls |grep delay
在plugins内启用插件
rabbitmq-plugins enable rabbitmq_delayed_message_exchange
重启docker
docker restart rabbit
证明安装成功