Docker部署RabbitMQ
-
Docker下载RabbitMQ
docker pull rabbitmq:3.8.4-management
-
Docker启动RabbitMQ容器
docker run -d --name rabbitmq -p 5672:5672 -p 15672:15672 -v /data/docker-data/rabbitmq:/var/lib/rabbitmq --hostname mmt -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin rabbitmq:3.8.4-management
-
访问IP:15672,添加virtual host、user