美文网首页
ES安装错误处理

ES安装错误处理

作者: Jlan | 来源:发表于2019-01-11 13:58 被阅读6次

一. 安装错误解决办法

启动es,如果报错如下:

ERROR: [2] bootstrap checks failed
[1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
  1. 修改 /etc/sysctl.conf添加下面配置:

    vm.max_map_count=655360 【修该项即可】
    

    然后执行命令:

    sysctl -p
    
  2. 修改/etc/security/limits.conf添加如下内容:

    * soft nofile 65536 #【修改该项即可】
    * hard nofile 131072
    * soft nproc 2048
    * hard nproc 4096
    

    最后重启终端就可以啦。

  3. 验证是否安装成功

    ps aux | grep elasticsearch
    或
    curl -XGET 127.0.0.1:9200
    

二. 基本操作

查看所有索引

curl -XGET 'localhost:9200/_cat/indices?v&pretty'

相关文章

网友评论

      本文标题:ES安装错误处理

      本文链接:https://www.haomeiwen.com/subject/zeftfqtx.html