我是程序猿

首页 » 学海无涯 » database » elasticsearch7.x安装异常 ERROR: [2] bootstrap checks failed. You
JohnLiu - 2022/1/20 10:55:19
ERROR: [2] bootstrap checks failed. You must address the points described in the following [2] lines before starting Elasticsearch.
bootstrap check failure [1] of [2]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
bootstrap check failure [2] of [2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]


主要是文件权限与内存大小问题:


elasticsearch用户拥有的可创建文件描述的权限太低,至少需要65536,

                 处理办法:   #切换到root用户修改

                                  vim /etc/security/limits.conf   # 在最后面追加下面内容

                                   elk hard nofile 65536

                                  elk soft nofile 65536              #***  是启动elk的用户

max_map_count文件包含限制一个进程可以拥有的VMA(虚拟内存区域)的数量

                 处理办法:    #切换到root用户修改

                                  vim /etc/sysctl.conf    # 在最后面追加下面内容

                                  vm.max_map_count=655360

                                 执行  sysctl -p

附一些linux处理文件命令:
linux 修改文件内容命令

1、进入文件:vim 文件名

eg #vim /etc/httpd/httpd.conf

2、查找待修改内容位置 :

(1)shift+“:”,使文件变成可查询状态

(2)输入 / +查询内容 (eg 查询Directory参数,即 /Directory)

eg 找到Directory参数,注释掉Require all denied添加Require all granted

3、找到位置后修改:按键盘 i 键 即变成可编辑状态

4、修改文件内容后退出:按ESC键

5、保存修改:

(1)shift+“:”,使文件变成可查询状态

(2)输入 wq!

6、不保存修改:

(1)shift+“:”,使文件变成可查询状态

(2)输入 q!

1
查看完整版本: elasticsearch7.x安装异常 ERROR: [2] bootstrap checks failed. You