Detailed explanation of deploying Elasticsearch kibana and ik word segmenter in docker

Detailed explanation of deploying Elasticsearch kibana and ik word segmenter in docker

es installation

docker pull elasticsearch:7.4.0
# -d : Run in the background# -p : Specify the port mapping between the host and the docker container# --name : Give the elasticsearch container an alias# -e : Specify single-node cluster mode# docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.4.0
docker run -id --name es -d -p 9200:9200 -p 9300:9300 -v /usr/share/elasticsearch/plugins:/usr/share/elasticsearch/plugins -e "discovery.type=single-node" elasticsearch:7.4.0
-v /usr/share/elasticsearch/plugins:/usr/share/elasticsearch/plugins #To configure this, you don't need to enter the container to operate. Just unzip the ik word segmenter to this directory and ojbk it.

es modify memory

find / -name jvm.options
vim /var/lib/docker/overlay2/1df979ae710529bc978409973092d28608f927ab6c4b26f5e2c0ffee06e3ac1e/diff /usr/share/elasticsearch/config/jvm.options

1.3 Configure the Chinese word segmenter ik

Because the directory is mapped when the elasticsearch container is created, the ik Chinese word segmenter can be configured on the host. When selecting the ik word segmenter, it needs to correspond to the elasticsearch version. Upload the elasticsearch-analysis-ik-7.4.0.zip in the document to the server and unzip it in the corresponding directory (plugins).

kibana installation

docker pull kibana:7.4.0
# -e : Specify environment variable configuration, provide Chinese translation# --like : Establish an association between two containers, kibana is associated with es
# If you are not used to Chinese, you can remove the condition docker run -d --name kibana --link es:es-p 5601:5601 kibana:7.4.0
docker exec -it kibana /bin/bash #Enter the container and change the host
cd config
vi kibana.yml
Change host to 0.0.0.0
Change the address to public network ip+9200

Check the log of a certain thing. If it cannot be started, you can check the log details.

docker logs kibana

This is the end of this article about deploying Elasticsearch kibana with docker and detailed explanation of ik word segmenter. For more relevant content about deploying Elasticsearch kibana with docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Graphical method of integrating elasticsearch7 with springboot
  • SpringBoot integrates Elasticsearch to implement indexing and document operations
  • Detailed explanation of the use of golang elasticsearch Client
  • Detailed tutorial on using ElasticSearch in springboot
  • Java elasticsearch installation and deployment tutorial

<<:  A quick review of CSS3 pseudo-class selectors

>>:  MySQL data loss troubleshooting case

Recommend

Implementation of crawler Scrapy image created by dockerfile based on alpine

1. Download the alpine image [root@DockerBrian ~]...

jQuery implements Table paging effect

This article shares the specific code of jQuery t...

Sample code of uniapp vue and nvue carousel components

The vue part is as follows: <template> <...

Web page creation question: Image file path

This article is original by 123WORDPRESS.COM Ligh...

MySQL concurrency control principle knowledge points

Mysql is a mainstream open source relational data...

Native JS to implement drag position preview

This article shares with you a small Demo that ad...

The difference and usage of Vue2 and Vue3 brother component communication bus

Table of contents vue2.x vue3.x tiny-emitter plug...

Sample code for implementing follow ads with JavaScript

Floating ads are a very common form of advertisin...

CentOS 7.9 installation and configuration process of zabbix5.0.14

Table of contents 1. Basic environment configurat...

Solve the group by query problem after upgrading Mysql to 5.7

Find the problem After upgrading MySQL to MySQL 5...

Detailed explanation of BOM and DOM in JavaScript

Table of contents BOM (Browser Object Model) 1. W...

How to optimize MySQL index function based on Explain keyword

EXPLAIN shows how MySQL uses indexes to process s...