CentOS7 安装Elasticsearch 5.5

来源:互联网 发布:chrome如何调试js代码 编辑:程序博客网 时间:2024/05/22 10:49

安装过程中遇到了一些问题

问题1:ERROR: bootstrap checks failed

ERROR: [2] bootstrap checks failed[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536][2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

解决:切换到root用户,编辑limits.conf 添加类似如下内容

vi /etc/security/limits.conf 

添加如下内容:

* soft nofile 65536* hard nofile 131072* soft nproc 2048* hard nproc 4096

问题2:max number of threads [1024] for user [lish] likely too low, increase to at least [2048]

vi /etc/security/limits.d/90-nproc.conf 

修改如下内容:

* soft nproc 1024

修改为:

* soft nproc 2048

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

解决:切换到root用户修改配置sysctl.conf

vi /etc/sysctl.conf 

添加下面配置:

vm.max_map_count=655360

并执行命令:

sysctl -p

然后,重新启动 Elasticsearch

ElasticSearch后台启动命令

./bin/elasticsearch -d

查看后台命令是否启动成功

ps aux|grep elasticsearch
原创粉丝点击