In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "Docker how to install and deploy RabbitMQ", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Docker how to install and deploy RabbitMQ" bar!
About Docker
About Docker, Baidu Encyclopedia says that Docker is an open source application container engine that allows developers to package their applications and dependency packages into a portable container, publish them to any popular Linux machine, and virtualize them. Containers are completely sandboxed and do not have any interfaces to each other (similar to iPhone's app). More importantly, the container performance overhead is extremely low. In general, you can install different applications and environments on it, and it is easy to install. On the installation of dockerk, this chapter will not elaborate, Google or Baidu, the installation is very simple, and then there are plans to write it, after all, at the beginning of contact with docker, or encountered some holes.
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
Beside the question: when you search for image files, you can go directly to the Docker store to search, the address is: https://hub.docker.com/ Magazine RabbiMQ related image is: https://hub.docker.com/_/rabbitmq/, check tags, you can check the version information. Of course, you can search for other images on your own. The mirror resource that ranks first is directly selected here.
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.
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
View the running status:
Indicates that it has been started. You can check the log:
Docker logs 0dcc9361151e
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.
Summary
The main purpose of this chapter is to use Docker to install and deploy RabbitMq. Since I came into contact with Docker, the installation of software, environment and other things are too simple, artifacts, and do not need to delete directly, but also very convenient. Of course, when deploying in a production environment, basic services like RabbitMQ, redis, etc., are recommended to be installed directly. Of course, the operation and maintenance department can also make self-made images and deploy the tuned images, which should also belong to ok. This is not a familiar field and dare not command blindly.
Thank you for reading, the above is the content of "how to install and deploy RabbitMQ in Docker". After learning in this article, I believe you have a deeper understanding of how to install and deploy RabbitMQ in Docker, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.