Get the App
SLTechnology News&Howtos  ›  Development  › 

Analysis of docker installation elasticsearch and kibana instance

Shulou Source: shulou.com Published: 2022-05-31 20:54:59 09月21日 Update

This article focuses on "docker installation elasticsearch and kibana instance analysis", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "docker installation elasticsearch and kibana instance analysis"!

1. Install elasticsearch

Pull elasticsearch Mirror

Docker pull elasticsearch

Create a handover mode network

Docker network create elasticsearch_net

Installation

Docker run-d-- name elasticsearch-p 9200 elasticsearch_volume:/root-p 9300 network elasticsearch_net-v elasticsearch_volume:/root-e "privileged=true"-e "discovery.type=single-node" elasticsearch#-d background operation #-- name elasticsearch container name #-p 9200 elasticsearch_volume:/root 9200-p 9300 elasticsearch_volume:/root 9300 mapped port #-network elasticsearch_net designated network #-v elasticsearch_volume:/root named shared directory #-e "privileged=true" configuration Set access permissions #-e "discovery.type=single-node" specify elasticsearch deployment mode # elasticsearch specified image-#-v elasticsearch_volume:/root named shared directory #-e "privileged=true" configuration access permissions initially without configuration access permissions Es can't get up all the time. You can get up if you add permission.

Modify configuration

Echo 'http.cors.allow-origin: "*" > > elasticsearch.ymlecho "http.cors.enabled: true" > > elasticsearch.yml

Restart es

Docker restart elasticsearch

Install the ik word splitter

Download the same version of the ik participle zip package through a shared directory or direct wget, and link

Extract to / usr/share/elasticsearch/plugins directory

Restart es

You can see in the docker restart elasticsearch startup log that the plug-in is loaded into the ik splitter.

Install kibana

Docker pulls kibana 5.6.12 image

Docker pull kibana:5.6.12

Run kibana

Docker run-d-- name kibana-- network elasticsearch_net-e elasticsearch_url= http://192.168.159.3:9200-p 5601 name kibana 5601 kibana:5.6.12

Visit kibana

Install elasticsearch-head

Docker pull mobz/elasticsearch-head:5docker run-d-p 9100 9100 docker.io/mobz/elasticsearch-head:5

At this point, I believe you have a deeper understanding of "docker installation elasticsearch and kibana instance analysis". 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!

Tags: Permissions directory configuration instance instance analysis analysis mirror content mode network learning running practical deeper same interest name background practicality actual Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft OPPO Reno Shulou Technology vpn MySQL