I. Main points of this paper

This paper will introduce how to use Docker to quickly build a development environment and build ES and Kibana instances. A complete catalog of articles in the series

  • Docker command
  • Kibana docker installation
  • Docker installation es
  • Docker obtains the container IP address
  • Common docker commands

Second, development environment

  • 2 d0083d docker 18.09.7, build
  • Linux 64 – bit
  • Elasticsearch 6.8.4
  • Kibana 6.8.4

Install docker

Reference: blog.csdn.net/caiwen_5050…

4. Install ES

1, install,

# fetch mirrorDocker pull elasticsearch: 6.8.4# install es, port 9200,9300Docker run -d p 9200:9200 -p 9300:9300 --name ElasticSearch elasticSearch :6.8.4Check whether it is running properly
docker ps -a
# check log
docker logs elasticsearch

Copy the code

2. Precautions If a message is displayed indicating that the memory is insufficient, modify parameters

sysctl -w vm.max_map_count=262144
docker restart elasticsearch
Copy the code

If Docker pull is limited, you need to register the user or replace it with the company’s internal warehouse address

Five, install Kibana

1. Check the internal IP address of ElasticSearch

docker ps -a 
docker inspect --format '{{ .NetworkSettings.IPAddress }}'  elasticsearch
Copy the code

ELASTICSEARCH_URL is the internal IP address of elasticSearch container.

Docker pull Kibana :6.8.4 docker runit-d-e ELASTICSEARCH_URL=http://192.168.10.3:9200 --name kibana -P 5601:5601 Kibana: 6.8.4Copy the code

Curl http://machine IP :5601

3, Complete the above steps to use Kibana normally, if not, login Kibana container, modify the configuration of Kibana.yml

# Enter the Kibana container
 docker exec -it kibana /bin/bash
View the configuration fileBash - $4.2 find. / - name"kibana.yml"
./config/kibana.yml
Modify the configuration file
vi ./config/kibana.yml 
Copy the code

Replace with elasticSearch container internal IP, as in”http://192.168.10.3:9200″

4. Restart the Kibana container

docker restart kibana
Copy the code

Seven, summary

With a few simple commands, ES and Kibana are built, isn’t it easy? Springboot Integration with ES and RestHighlevelClient

Add me to exchange learning!