ElasticSearch排坑錦囊

前言:選擇安裝包的時候,盡量選擇用rpm包去安裝,因為里面的一些配置,rpm包管理會幫你做好。
問題一:[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]<br/>[2]: max number of threads [1024] for user [es] is too low, increase to at least [4096]<br/>
原因:無法創(chuàng)建本地文件問題,用戶最大可創(chuàng)建文件數(shù)太小
解決方案:切換到root用戶,編輯limits.conf配置文件, 添加類似如下內(nèi)容:
vim /etc/security/limits.conf
添加如下內(nèi)容: 注意*不要去掉了

創(chuàng)新互聯(lián)公司主要從事成都網(wǎng)站設(shè)計、成都做網(wǎng)站、網(wǎng)頁設(shè)計、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)寧海,十載網(wǎng)站建設(shè)經(jīng)驗,價格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):028-86922220

* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096

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

原因:最大虛擬內(nèi)存區(qū)域vm.max_map_count太低
解決:切換到root用戶修改配置sysctl.conf
vi /etc/sysctl.conf
添加下面配置:
vm.max_map_count=655360
并執(zhí)行命令:
sysctl -p

問題三:system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk<br/>
原因:因為Centos6不支持SecComp,而ES5.2.1默認(rèn)bootstrap.system_call_filter為true進(jìn)行檢測,所以導(dǎo)致檢測失敗,失敗后直接導(dǎo)致ES不能啟動
解決:在elasticsearch.yml中配置bootstrap.system_call_filter為false,注意要在Memory下面:

bootstrap.memory_lock: false
bootstrap.system_call_filter: false

網(wǎng)頁題目:ElasticSearch排坑錦囊
文章網(wǎng)址:http://muchs.cn/article38/ppjcpp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供營銷型網(wǎng)站建設(shè)、網(wǎng)站建設(shè)移動網(wǎng)站建設(shè)、網(wǎng)站改版網(wǎng)站制作、手機網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司