安装篇-安装RabbitMQ
安装RabbitMQ
这里安装是基于docker-compose安装的,docker-compose安装请移步「安装docker和docker-compose」
1、docker-compose.yml
version: '3'
services:
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=root
- RABBITMQ_DEFAULT_PASS=123456
restart: always
ports:
- "15672:15672"
- "5672:5672"
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"