Elasticsearch启动过程中遇到的坑

    技术2023-05-15  106

    1、ES报错:Cenots elasticsearch max virtual memory areas vm.max_map_count [65530] is too low, increase t

    解决办法:https://blog.csdn.net/weixin_43230063/article/details/84251597

    2、elastic search报错——“failed to obtain node locks”

    第一步:通过命令:ps aux | grep ‘elastic’ 进行查看。如下图:

    第二步:通过命令: kill -9 进程号 关闭此进程。

    第三步:重新启动es。./bin/elasticsearch

    启动成功后,浏览器中输入http://IP:9200,若出现一串json字符串就说明es启动成功

    或者可通过查看端口确认启动情况:

    lsof -i:9200

    lsof -i:9300

    Processed: 0.017, SQL: 9