docker pull rabbitmq:3.12.12-management
啟動前開啟防火牆docker run -d -p 5672:5672 -p 15672:15672 --name rabbitmq rabbitmq:3.12.12-management
延遲外掛:
3. docker ps
輸出如下:cd076ce19eec rabbitmq:3.12.12-management "docker-entrypoint.s…" 53 seconds ago Up 52 seconds 4369/tcp, 5671/tcp, 0.0.0.0:5672->5672/tcp, :::5672->5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp, :::15672->15672/tcp rabbitmq
docker cp /mnt/rabbitmq_delayed_message_exchange-3.8.0.ez cd:/plugins
docker exec -it cd /bin/bash
rabbitmq-plugins enable rabbitmq_delayed_message_exchange