• ElasticSearch 5.0.0 安装部署常见错误或问题


    1.ERROR: bootstrap checks failed

    [1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]

    原因:无法创建本地文件问题,用户最大可创建文件数太小

    解决方案:
    切换到root用户,编辑limits.conf配置文件, 添加类似如下内容:

    [root@Aliyun ~]# vim /etc/security/limits.conf

    添加如下内容:
    *  soft nofile 65536
    * hard nofile 131072

    备注:* 添加到最后面

    备注:* 代表Linux所有用户名称(比如 hadoop)

    保存、退出、重新登录才可生效

    [2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

    [root@iz2ze1bzpi3orra8lboxqiz ~]# vim  /etc/sysctl.conf
     
    添加下面配置:

    vm.max_map_count=655360

    并执行命令:

    [root@iz2ze1bzpi3orra8lboxqiz ~]# sysctl -p

    [3]: memory locking requested for elasticsearch process but memory is not locked

    [root@iz2ze1bzpi3orra8lboxqiz ~]# vim /etc/security/limits.conf
     
    添加:
     
    * soft nproc 32000
    * hard nproc 32000
    * hard memlock unlimited
    * soft memlock unlimited
     

    备注:* 添加到最后面

     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
  • 相关阅读:
    I
    poj 3414 pots (bfs+路径记录)
    hdoj 1495 非常可乐(bfs)
    hdoj 1241 Oil Deposits (dfs)
    hdoj 2612 find a way (两次bfs)
    poj 3984 迷宫问题
    poj 3087 Shuffle'm Up (bfs)
    poj 3126 Prime Path (bfs)
    poj 3279 Fliptile
    hdu_3068 最长回文(Manacher算法)
  • 原文地址:https://www.cnblogs.com/chuijingjing/p/10029418.html
Copyright © 2020-2023  润新知