linux搭建所遇到的坑elasticsearch-6.3.0


 

注意: 不能使用主賬號(root賬號運行,必須使用子賬號登錄)

 

第一步安裝:: wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.0.tar.gz

第二步安裝:  tar -zxvf  elasticsearch-6.3.0.tar.gz -C /root/local

第三步安裝:  進入到/root/local/elasticsearch-6.3.0.tar.gz 

第四步安裝:  mv elasticsearch-6.3.0.tar.gz  elasticsearch6.3

第五步安裝: vim elasticsearch6.3/config/elasticsearch.yml

第六步安裝: 

 

discovery.zen.ping.unicast.hosts: ["192.168.91.135:9305"]  搭建集群使用  保存

第七步安裝:  啟動bin的./elasticsearch遇到的坑

(1)   ERROR: bootstrap checks failed

max number of threads [4096] for user [lish] likely too low, increase to at least [65536]

max number of threads [3895] for user [elk] is too low, increase to at least [4096]

解決方法: 

(1) 修改  :  vi /etc/security/limits.conf 

       user是創建用戶 

useradd user--創建用戶
groupadd test --創建組
gpasswd -a diyueyu test 將diyueyu添加到test組
chmod 777 文件名稱 給文件設置權限
usermod -g 組名 用戶名 --改變用戶所在組
chown -R 用戶名:組別 文件名    --給用戶添加文件權限
 
(2) 修改  vi /etc/security/limits.d/20-nproc.conf
 
(3) 修改  vi /etc/security/limits.d/20-nproc.conf

(4) 需要修改 vi /etc/sysctl.conf

vm.max_map_count=655360

(5)錯誤5  system call filters failed to install; check the logs and fix your configuration or disable system c

在yml的配置文件里加

bootstrap.system_call_filter: false

 然后切換成你的子賬號啟動就可以了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM