docker安装rabbitmq和延迟插件

  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 rabbitmq_delayed_message_exchange-3.12.0.ez cd:/plugins
  2. docker exec -it cd /bin/bash
  3. rabbitmq-plugins enable rabbitmq_delayed_message_exchange
    添加权限
    1. rabbitmqctl add_user qimu 12345678
    2. rabbitmqctl set_user_tags qimu administrator
    3. rabbitmqctl set_permissions -p / qimu ".*" ".*" ".*"

nginx刷新404
try_files $uri $uri/ /index.html;

posted @ 2024-03-05 21:36  柒木木木  阅读(107)  评论(0编辑  收藏  举报