1、docker安装mq
docker run --name rabbit --restart=always -p5672:5672 -p15672:15672 -p15692:15692 -v /opt/rabbitmq/data:/var/lib/rabbitmq -eRABBITMQ_DEFAULT_USER=guest -eRABBITMQ_DEFAULT_PASS=guest rabbitmq:3.8.3-management
2、docker安装redis
docker run --name redis --restart=always -p6379:6379 -d registry.cn-hangzhou.aliyuncs.com/sqqdcl/redis:latest --requirepass sq