How to install and deploy RabbitMQ in Docker
This article mainly introduces "how to install and deploy RabbitMQ in Docker" related knowledge, editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope that this "how to install and deploy RabbitMQ in Docker" article can help you solve the problem.
Install and deploy RabbitMQ
Pull the RabbitMQ image file, and management is added here, which indicates that it has a web management interface and is easy to manage.
Docker pull rabbitmq:management
Search rabbitmq
There is a pull command in the right column, where the default version is installed directly. When a specific version is needed, you can specify the target version at the time of installation.
Docker command
After entering the command, enter and you can see the installation.
Run the image, here you can directly view the web page, will prompt you how to run, including the specification of some parameters, and so on. It's a direct default here.
Docker run-d-- hostname my-rabbit-- name okong-rabbit rabbitmq:management
Run command
View the running status:
Indicates that it has been started. You can check the log:
Docker logs 0dcc9361151e
Log view
Has been started, the browser can directly access the server address, the default port is: 5672Jing web management port is: 15672, the default user and password is: guest.
Pothole: after pressing the above command, it is found that the port is not mapped. Forget (how can I remember that there is no need to specify by default. There is a feeling of amnesia. The final complete command is
Docker run-d-- hostname my-rabbit-p 5671-p 5672-p 5672-p 4369-4369-p 25672-15672-p 15671-p 15672-- name okong-rabbit rabbitmq:management
Visit: http://server-ip:15672.
Log in with the default username and password.
This is the end of the introduction on "how to install and deploy RabbitMQ in Docker". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.