安装篇-安装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"
posted @ 2020-06-08 15:13  直角漫步  阅读(238)  评论(0编辑  收藏  举报