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

Installation steps of Docker under elasticsearch

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly explains "the installation steps of Docker under elasticsearch". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "the installation steps of Docker under elasticsearch".

Elasticsearch (Docker)

Tags (separated by spaces): Elasticsearch

[toc]

1. Install # download docker pull docker.elastic.co/elasticsearch/elasticsearch:6.6.2# to enable docker run-p 9200 discovery.type=single-node 9200-p 9300-e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.6.2

Use cluster deployment

# # start docker run-d\-name=a-pro-es1\-p 9200pur9200\-e "ES_JAVA_OPTS=-Xms512m-Xmx512m"\-- ulimit memlock=-1:-1\-- ulimit nofile=65536:65536\-v / opt/docker/elasticsearch/es1.yml:/usr/share/elasticsearch/config/elasticsearch.yml\-v / opt/docker/elasticsearch/data:/usr/share/elasticsearch/data\-v / opt/docker/elasticsearch/logs:/usr/share/ Elasticsearch/logs\ elasticsearch:5.3## host mode starts docker run-d-- name=a-pro-es1-- net=host-e "ES_JAVA_OPTS=-Xms512m-Xmx512m"-- ulimit memlock=-1:-1-- ulimit nofile=65536:65536-v / opt/docker/elasticsearch/es1.yml:/usr/share/elasticsearch/config/elasticsearch.yml-v / opt/docker/elasticsearch/data:/usr/share/elasticsearch/data-v / opt/docker/elasticsearch/logs:/usr/share / elasticsearch/logs docker.elastic.co/elasticsearch/elasticsearch:6.6.22. Install (elasticsearch-head) docker run-p 9100 mobz/elasticsearch-head:53 9100 mobz/elasticsearch-head:53. Install synchronous MYSQL data plug-in logstash-input-jdbc# docker install logstash (need to be consistent with elasticsearch version) docker run-- rm-it-v / opt/docker/logstash/lib:/opt/logstash/lib-v / opt/docker/logstash/sql:/opt/logstash/sql-v / opt/docker/logstash/settings/logstash.yml:/usr/share/logstash/config/logstash.yml docker.elastic.co/logstash/logstash:6.6.24. Log access (elasticsearch) handles logs and outputs to Elasticsearch. You can use logging tools such as rsyslog (www.rsyslog.com), Logstash (www.elastic.co/products/logstash), or Apache Flume (http://flume.apache.org) to search and analyze these logs. You can use Kibana (www.elastic.co/ product / kibana) here. I believe you have a better understanding of "Docker installation steps under elasticsearch". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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

Internet Technology

Wechat

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

12
Report