docker安裝rabbitmq和延遲外掛

柒木木木發表於2024-03-05
  1. docker pull rabbitmq:3.12.12-management
    啟動前開啟防火牆
  2. 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

  1. docker cp /mnt/rabbitmq_delayed_message_exchange-3.8.0.ez cd:/plugins
  2. docker exec -it cd /bin/bash
  3. rabbitmq-plugins enable rabbitmq_delayed_message_exchange

相關文章