安装es、kibana、ik分词器可参考:http://t.csdnimg.cn/59mEG
1. 内核过低

 我们使⽤的是 centos6 ,其 linux 内核版本为 2.6 。⽽ Elasticsearch 的插件要求⾄少 3.5 以上版  
 
 本。不过没关系,我们禁 ⽤这个插件即可。  
 
 修改 elasticsearch.yml ⽂件,在最下⾯添加如下配置: 
 
bootstrap.system_call_filter : false
 然后重启 
 
2. 权限不足:
java.nio.file.AccessDeniedException: /opt/bigmw/es/elasticsearch-7.8.0/config/elasticsearch.keystore
原因是权限不足,重新给该用户赋权:
chown -R elastic:elastic /opt/bigmw/es/elasticsearch-7.8.0/
实在不行就给config目录或elasticsearch.keystore文件单独赋权
3.⽂件权限不⾜

 我们⽤的是 es ⽤户,⽽不是 root ,所以⽂件权限不⾜。  
 
 ⾸先⽤ root ⽤户登录 , 然后修改配置⽂件 : 
 
vim /etc/security/limits.conf
 添加下⾯的内容:  
 * soft nofile 65536* hard nofile 131072* soft nproc 4096* hard nproc 4096
4.线程数不够
[1]: max number of threads [1024] for user [es] is too low, increase toat least [4096]
 这是线程数不够 继续修改配置 
  vim /etc/security/limits.d/20-nproc.conf
 修改下⾯的内容: 
 soft nproc 1024
 改为 
 soft nproc 4096
5.进程虚拟内存
[3]: max virtual memory areas vm.max_map_count [65530] likely too low,increase to at least [262144]
 vm.max_map_count :限制⼀个进程可以拥有的 VMA( 虚拟内存区域 ) 的数量  
  继续修改配置⽂件,  vim /etc/sysctl.conf  添加下⾯内容: 
 vm .max_map_count = 655360
 修改完成之后在终端执⾏ 
 ## 然后执⾏命令sysctl -p
6.未设置节点
the default discovery settings are unsuitable for production use; atleast one of [discovery.seed_ho...]
 修改 elasticsearch.yml 
 cluster.name : my-applicationnode.name : node-1cluster.initial_master_nodes : [ "node-1" ]