ElasticSearch非Root用户启动报错

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

    每个进程最大同时打开文件数太小,在root用户下修改/etc/security/limits.conf文件,添加如下:

    * soft nofile 65536

    * hard nofile 65536

  2. max number of threads [1024] for user [fangjie] is too low, increase to at least [4096]

    elasticsearch用户的最大线程数太低

    1).在root用户下修改/etc/security/limits.d/90-nproc.conf文件,修改如下:

    * soft nproc 1024 ----> * soft nproc 4096

    1).在root用户下修改/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]

    elasticsearch用户拥有的内存权限太小,在root用户下修改/etc/sysctl.conf文件,添加如下:

    vm.max_map_count=262144,并且执行sysctl -p生效

转载于:https://my.oschina.net/u/1161660/blog/3042798

你可能感兴趣的:(ElasticSearch非Root用户启动报错)