美文网首页
Centos7 安装 Elasticsearch 7.2.0 以

Centos7 安装 Elasticsearch 7.2.0 以

作者: 文如狗 | 来源:发表于2019-10-10 16:51 被阅读0次

    安装

    es7.2下载 包括es和对应的 ik分词插件 + kibana

    下载地址: https://pan.baidu.com/s/1T2qyTKCrVkmXDE0dmWqu5Q

    提取码:  inly

    常见问题

    1  root用户不能启动es

    groupadd  huangkw

    useradd huangkw -g huangkw -p 123456

    chown  -R huangkw:huangkw  elasticsearch-7.2.0/ 

    2 虚拟机限制用户的执行内存

    ERROR: [3] bootstrap checks failed

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

    [2]: max number of threads [3802] for user [elsearch] is too low, increase to at least [4096]

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

    解决办法:

    vi /etc/security/limits.conf

    使用最高权限 修改安全配置 在文件末尾加入

    # End of file

    elsearch      hard       nofile        65536

    elsearch      soft        nofile        65536

    *                  soft        nproc        4096

    *                 hard       nproc        4096

    备注: elsearch为用户名 可以是使用*进行通配

    nofile 最大打开文件数目

    nproc 最大打开线程数目

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

    vi /etc/sysctl.conf

    vm.max_map_count = 655360

    相关文章

      网友评论

          本文标题:Centos7 安装 Elasticsearch 7.2.0 以

          本文链接:https://www.haomeiwen.com/subject/itnfyctx.html