docker安装rabbitmq和延迟插件
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 rabbitmq_delayed_message_exchange-3.12.0.ez cd:/plugins
docker exec -it cd /bin/bash
rabbitmq-plugins enable rabbitmq_delayed_message_exchange
添加权限-
rabbitmqctl add_user qimu 12345678
rabbitmqctl set_user_tags qimu administrator
rabbitmqctl set_permissions -p / qimu ".*" ".*" ".*"
nginx刷新404
try_files $uri $uri/ /index.html;