Docker RabbitMQ-Management install rabbitmq-delayed-message-exchange plugin

There is no wget and other commands in docker, first download the plugin manually

https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/v3.8.0/rabbitmq_delayed_message_exchange-3.8.0.ez

Then copy it to docker

docker cp rabbitmq_delayed_message_exchange-3.8.0.ez 6a56b1871ee3:/home

In the docker container, find the path of the MQ plugin

Mine is / opt / rabbitmq / plugins, put it in

Insert picture description here

Then rabbitmq-plugins enable rabbitmq_delayed_message_exchange to be careful not to bring the version and .ez

Use the rabbitmq-plugins list command to view the installed plugins

Insert picture description here

OK

Test with java

Insert picture description here
Source address: https://github.com/qiaomengnan16/mq-delayed-test

Published 38 original articles · praised 17 · views 9002

Guess you like

Origin blog.csdn.net/cainiao1412/article/details/104497391