注意: 不能使用主賬號(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是創建用戶


(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
然后切換成你的子賬號啟動就可以了