Centos7 安装 Elasticsearch 7.2.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

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容