In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to install zookeeper in docker". In daily operation, I believe many people have doubts about how to install zookeeper in docker. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to install zookeeper in docker". Next, please follow the editor to study!
Docker install zookeeper
Zookeeper is a distributed, open source distributed application coordination service. We often use zookeeper as the service registry of dubbo and use docker to build a zookeeper server. In stand-alone mode, the command is as follows:
Docker run-- name docker-zookeeper-p 2888 zookeeper:3.4 2888-p 3888 restart always-d zookeeper:3.4
Note that this method is only for native development, testing, learning and use, and at least three units should be deployed to build a cluster in the production environment.
-- name gave the container a name
-p bind the 2181 port number of the host to the 2181 port number of the container
-- restart always will restart automatically if there is an exception in the container
-d runs in the background
Zookeeper:3.4 uses an image of version 3.4, and different versions of zookeeper vary greatly. Now the general version for development is 3.4.x, so I chose this version.
The results are as follows:
Connection test
You can use this zookeeper plug-in in idea to test the connection
Then you can see the following message in the sidebar that the connection is successful:
At this point, the study on "how to install zookeeper in docker" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.