cd /usr/local/docker
- 将插件拷贝到容器内plugins目录下
docker cp rabbitmq_delayed_message_exchange-3.10.0.ez rabbitmq:/plugins
- 进入 RabbitMQ 容器
docker exec -it rabbitmq /bin/bash
- 查看 rabbitmq_delayed_message_exchange-3.10.0.ez 插件是否存在
cd plugins
ls
- 在 plugins 内启用 rabbitmq_delayed_message_exchange-3.10.0.ez 插件
rabbitmq-plugins enable rabbitmq_delayed_message_exchange
- 退出RabbitMQ容器
exit
- 重启 RabbitMQ 容器
docker restart cd-rabbitmq