在大家看这篇博客之前,先请大家去看博主的前一篇博客:
Docker化RabbitMQ:轻松实现消息队列的部署与配置-CSDN博客
先安装rabbitmq,再去安装延迟队列。
cd /usr/local/docker/rabbitmq/
2.1rabbitmq的网址:
https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases
2.2下载:
wget https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/3.9.0/rabbitmq_delayed_message_exchange-3.9.0.ez
docker cp rabbitmq_delayed_message_exchange-3.9.0.ez rabbitmq:/plugins
docker exec -it 自己的容器ID bash
rabbitmq-plugins enable rabbitmq_delayed_message_exchange