Elasticsearch(六)5.2.2搭建遇到問題

一.安裝:類似ES學習(二)Linux搭建方式進行搭建

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.2.zip
sha1sum elasticsearch-5.2.2.zip
unzip elasticsearch-5.2.2.zip
cd elasticsearch-5.2.2/

二.啓動:bin/elasticsearch -d

啓動期間遇到了幾個問題進行分享:

三.排錯:一共四個問題(以下問題解決借要切換到root賬戶):

問題1max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536] elasticsearch 

原因:系統允許 Elasticsearch 打開的最大文件數需要修改成65536

解決:vi /etc/security/limits.conf

添加內容:

* soft nofile 65536

* hard nofile 131072

* soft nproc 2048

* hard nproc 4096

問題2:max number of threads [1024] for user [judy2] likely too low, increase to at least [2048]

原因:允許最大進程數修該成2048

解決:vi /etc/security/limits.d/90-nproc.conf

修改如下內容:

* soft nproc 1024

#修改爲

* soft nproc 2048

問題3:max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

原因:一個進程可以擁有的虛擬內存區域的數量。
解決:可零時提高vm.max_map_count的大小  

命令:sysctl -w vm.max_map_count=262144

問題4:bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks

解決:config/elasticsearch.yml添加:transport.host: localhost


啓動,成功~



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章