elasticsearh常见错误和解决方案

  Seves

    一、bootstrap checks failed

    max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536] max number of threads [1024] for user [lishang] likely too low, increase to at least [2048] 解决:切换到root用户,编辑limits.conf 添加类似如下内容 vi /etc/security/limits.conf 添加如下内容: * soft nofile 65536 * hard nofile 131072 * soft nproc 2048 * hard nproc 4096

    二、max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
    b5eb147f6f8b4ba8aa8f5c2e5ba793ba-Y0TNJ5QT.jpeg

    解决:sysctl -w vm.max_map_count=262144

    三、elasticsearch 要求非root账户启动,需要新建账户(例如elastic)切换root账户用命令chown -R elastic:elastic elasticsearch-5.3.0给新建账户elasticsearch的权限,然后再启动。

    csdn地址:https://blog.csdn.net/qq_36236890

    微信订阅号:
    942d3f36d8214ebeafab7807027778c2-qrcodeforgh0250283075b22581.jpg

    手在键盘敲很轻,我写的代码很小心。
    345