Check the available RabbitMQ versions

docker search rabbitmq
Copy the code

2. Obtain the latest RabbitMQ image

docker pull rabbitmq:latest
Copy the code

3. View the local mirror

docker images
Copy the code

4. Run the container

docker run -itd --name rabbitmq-test -p 5672:5672 -p 15672:15672 rabbitmq 
Copy the code

Start rabbitmq_management

docker exec -it rabbitmq-test rabbitmq-plugins enable rabbitmq_management
Copy the code

Open firewall 15672

Firewall-cmd --zone=public --add-port=15672/ TCP --permanent firewall-cmd --reloadCopy the code

7. Check the firewall status

systemctl status firewalld
Copy the code

8. Enable the firewall

systemctl start firewalld
Copy the code

Nine, close the protective wall

systemctl stop firewalld
Copy the code

Change guest password

rabbitmqctl  change_password  guest 'Newpassword'
Copy the code