1. Download address

RabbitMQ

2. Install RabbitMQ using Docker

2.1 Pulling an Image

Docker pull the rabbitmq: 3.8.9 - managementCopy the code

2.2 Creating a Mount Directory

mkdir -p /usr/local/docker/rabbitmq/data
mkdir -p /usr/local/docker/rabbitmq/logs
Copy the code

2.3 Running a Container

docker run -d --name rabbitmq \
-e RABBITMQ_DEFAULT_USER=admin \
-e RABBITMQ_DEFAULT_PASS=admin \
-p 15672:15672 -p 5672:5672 \
-v /usr/local/docker/rabbitmq/data:/var/lib/rabbitmq \
-v /usr/local/docker/rabbitmq/logs:/var/log/rabbitmq \
--restart always \
rabbitmq:3.8.9-management
Copy the code

2.4 the console

After successful startup, access 192.179.79.132:15672