1.不能用root用户启动
2.用其他用户启动时 需要赋予用户这个目录的权限 chmod -R xxx /elasticsearch
3.java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
原因:Centos6不支持SecComp,而ES有些版本默认bootstrap.system_call_filter为true
解决: 在elasticsearch.yml中
添加:
bootstrap.seccomp: false
或者添加:
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
## 如果有类似此错误,都添加上
4.max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决:vi /etc/sysctl.conf 添加: vm.max_map_count = 655360
5.max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
解决:vi /etc/security/limits.conf 添加:
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096