elasticsearch5.6.13安裝問題
1、首先要遠端連線就要修改elasticsearch.yml配置檔案的network.host
改為 network.host: 192.168.2.14 (自己區域網ip)或者 0.0.0.0
2、如果遇到問題
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解決辦法:切換到root使用者,編輯sysctl.conf
vim /etc/sysctl.conf
新增下面配置:
vm.max_map_count = 655360
並執行命令:
sudo sysctl -p
3. 如果遇到問題
max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]
max number of threads [1024] for user [lishang] likely too low, increase to at least [2048]
解決辦法:切換到root使用者,編輯limits.conf 新增類似如下內容
vi /etc/security/limits.conf
新增如下內容:
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
修改完成一定要退出,再次登入引數才能生效。
4. 如果遇到問題
max number of threads [1024] for user [lish] likely too low, increase to at least [2048]
解決辦法:切換到root使用者,進入limits.d目錄下修改配置檔案。
vi /etc/security/limits.d/90-nproc.conf
修改如下內容:
* soft nproc 1024
修改為
* soft nproc 2048
5.如果遇到問題
system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
解決方法:在elasticsearch.yml中配置bootstrap.system_call_filter為false,注意要在Memory下面:
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
此時重啟 elasticsearch就可以通過遠端訪問了