es installationdocker 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 ikBecause 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 installationdocker 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:
|
<<: A quick review of CSS3 pseudo-class selectors
>>: MySQL data loss troubleshooting case
DetachKeyPair Unbind SSH key pairs from one or mo...
It can be referenced through CDN (Content Delivery...
This is an enhanced version. The questions and SQ...
Find the problem Recently, I found a problem at w...
Table of contents 1. Document.execCommand() metho...
Anyone who has used Windows Remote Desktop to con...
1. What affects database query speed? 1.1 Four fa...
Effect picture: The implementation code is as fol...
1. Command Introduction The tac (reverse order of...
Several commonly used string methods in JavaScrip...
Preface During the interview, many interviewers m...
Preface I was recently reading about MySQL indexe...
It’s great to use CSS to realize various graphics...
1. Implementation ideas The purpose of interface ...
/****************** * Advanced character device d...