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

Analysis of docker installation ElasticSearch6.x instance

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

Share

Shulou(Shulou.com)05/31 Report--

Today, the editor will share with you the relevant knowledge points of docker installation ElasticSearch6.x instance analysis, the content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.

First of all, pull the mirror image (or create the container directly and pull it out naturally)

Docker pull elasticsearch:6.5.4

Create a container

Docker run-name elasticsearch-net host-e "discovery.type=single-node"-e "network.host=ip address" elasticsearch:6.5.4

Start

Docker start elasticsearch

View the log

Docker logs elasticsearch

You can see that because my server has only 2g of memory, the startup cannot be started because there is not enough memory. Modify the size of the startup memory.

Restart es

Docker run-- name elasticsearch-d-e es_java_opts= "- xms512m-xmx512m"-- net host-e "discovery.type=single-node"-e "network.host=ip address"-p 9200 xms512m 9300 elasticsearch

test

Ip:9200

These are all the contents of the article "docker installation ElasticSearch6.x instance Analysis". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

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