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 elasticsearch and kibana instance

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

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!

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