• elasticsearch启动常见错误


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

    每个进程最大同时打开文件数太小,可通过下面2个命令查看当前数量

    ulimit -Hn
    ulimit -Sn

    修改/etc/security/limits.conf文件,增加配置,用户退出后重新登录生效

    *               soft    nofile          65536
    *               hard    nofile          65536

    2、max number of threads [3818] for user [es] is too low, increase to at least [4096]

    问题同上,最大线程个数太低。修改配置文件/etc/security/limits.conf(和问题1是一个文件),增加配置

    可通过命令查看

    ulimit -Hu
    ulimit -Su

    修改/etc/security/limits.conf文件,增加配置,用户退出后重新登录生效

    *               soft    nproc           4096
    *               hard    nproc           4096


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

    修改/etc/sysctl.conf文件,增加配置vm.max_map_count=262144

    vi /etc/sysctl.conf
    sysctl -p

    执行命令sysctl -p生效


     4、Exception in thread "main" java.nio.file.AccessDeniedException: /usr/local/elasticsearch/elasticsearch-6.2.2-1/config/jvm.options

    elasticsearch用户没有该文件夹的权限,执行命令

    chown -R 用户名:用户组  文件路径
    
    #例如:
    chown -R es:es /usr/local/elasticsearch/
  • 相关阅读:
    国际域名转出ICANN投诉
    C#中使用SslStream类来创建SSL服务器/客户端
    将.com域名转到godaddy的操作教程
    Google Test Automation Conference 2013 Schedule
    3月收藏
    4月收藏
    2月收藏
    5月收集
    stl中queues的基本用法
    codeblocks花屏终极解决方法
  • 原文地址:https://www.cnblogs.com/snail90/p/11444424.html
Copyright © 2020-2023  润新知