Recently a docker installation elasticsearch + kibana met a lot of pits, and finally successfully installed elasticsearch + kibana (6.8.1) version
Installation afternoon, are summarized variety of pit encountered in the process, hoping to help a friend in need! This article is longer, be patient Oh!
He did not talk much, blogger Ali cloud server CentOS 7.6
Step 1: Install docker reference links https://www.cnblogs.com/yufeng218/p/8370670.html
Step two: docker installation elasticsearch
Pit 1 : bloggers have installed multiple versions elasticsearch to find a lot of information, the first installation elasticsearch 7.1.1 version, start elasticsearch after installing all kinds of questions are as follows:
错误1:bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] [2]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discover
Find information on this issue has been resolved!
错误2:the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
This problem could not find a good solution, version 7.0 is said to appear more than these two issues, to increase access to the interior of the container configuration, the key is to start I have not started up, how to configure it into the interior of the container docker? (give up)
If you have friends to solve the wrong 2, please leave a message advise!
Hang 2: The second installation elasticsearch 6.6.1 version starts without error, very well, but visit the official website video explaining elasticsearch said after kibana version 6.7 can support Chinese display , a Chinese version for bloggers is of course the initial contact with ELK easier to learn! So once again uninstall good elasticsearch. . .
Official video teaching Address: https://www.elastic.co/cn/webinars/getting-started-elasticsearch?baymax=rtp&elektra=products-es&storm=ribbon-1&rogue=default
Pit 3 : This is relatively low, and did not know before elasticsearch + kibana to be maintained at the same version , otherwise kibana not display properly, what specific error forgotten, anyway, to keep the same version ELK
Elasticsearch installed correctly as follows
docker pull elasticsearch:6.8.1
Note the version number must be added back, or not download
Step Three: Configure port elasticsearch
docker run -it --name elasticsearch -d -p 9200:9200 -p 9300:9300 -p 5601:5601 elasticsearch
Pit 4 : pay attention to pit again, the above statement can not be installed, will prompt elasticsearch: lastest error, the correct approach is to replace the image ID with name elasticsearch
docker images # ID View Mirror
So here is my correct statement should be 446946b24cdd
docker run -it --name 446946b24cdd -d -p 9200:9200 -p 9300:9300 -p 5601:5601 446946b24cdd
Step 4: Check whether the container starts successfully
docker ps
Step five: Access elasticsearch port 9200
If you can appear above JSON Congratulations you have successfully installed elasticsearch! ! !
kibana installation steps please see bloggers another essay.
Finally: the code word is not easy, if this article help you, what trouble spots recommended, thank you, welcome all friends message exchange, we will study together and progress together!