1. Install elasticsearch pull elasticsearch image docker pull elasticsearch Creating a Handoff Mode Network docker network create elasticsearch_net Install docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 --network elasticsearch_net -v elasticsearch_volume:/root -e "privileged=true" -e "discovery.type=single-node" elasticsearch # -d background run# --name elasticsearch container name# -p 9200:9200 -p 9300:9300 mapping port# --network elasticsearch_net specifies the network# -v elasticsearch_volume:/root named shared directory# -e "privileged=true" configures access rights# -e "discovery.type=single-node" specifies elasticsearch deployment mode# elasticsearch specifies the image---- # -v elasticsearch_volume:/root named shared directory# -e "privileged=true" Configure access permissions. If access permissions are not configured at the beginning, es will not start up. After adding permissions, it can start up Modify the configuration echo 'http.cors.allow-origin: "*"' >> elasticsearch.yml echo "http.cors.enabled: true" >> elasticsearch.yml Restart es docker restart elasticsearch Install ik tokenizer Download the same version of the ik word segmenter zip package through a shared directory or directly wget, link Unzip to the /usr/share/elasticsearch/plugins directory Restart es docker restart elasticsearch In the startup log, you can see that the ik word segmenter plug-in is loaded Install Kibana Docker pulls the 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:5601 kibana:5.6.12 Access kibana Install elasticsearch-head docker pull mobz/elasticsearch-head:5 docker run -d -p 9100:9100 docker.io/mobz/elasticsearch-head:5 This is the end of this article about the steps to install elasticsearch and kibana in docker. For more information about installing elasticsearch and kibana in 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:
|
<<: The difference between key and index in MySQL
>>: Detailed explanation of the this pointing problem in JavaScript
mysqladmin is an official mysql client program th...
Disclaimer: This password reset method can direct...
This article introduces how to install the system...
1. Introduction Supervisor is a general process m...
There is a project developed on Mac, and the pack...
Table of contents Registering Components Adding C...
Table of contents MySQL slave library Seconds_Beh...
mysql dirty pages Due to the WAL mechanism, when ...
1. Download mysql-5.7.17-winx64.zip; Link: https:...
Table of contents introduction Why bother? Commun...
Table of contents text LOCK parameter ALGORITHM p...
This article uses an example to describe the solu...
How to determine what this points to? ①When calle...
first step Delete it once with the built-in packa...
Table of contents Preface: 1. Introduction to Nav...