Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and deploy RabbitMQ in Docker

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report