elasticsearch安装时遇到的问题

1. 提示:max file descriptors [4096] for elasticsearch process is too low

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
解决方法如下:

编辑/etc/security/limits.conf文件
vi /etc/security/limits.conf

在文件的末尾处加上以下内容并保存

1
2
elasearch soft nofile 65536
elasearch hard nofile 65536

2. 提示:max virtual memory areas vm.max_map_count [65530] is too low

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
再执行下面命令使配置生效
sysctl -p
再使用以下命令查看是否已经生效
sysctl -a | grep "vm.max_map_count"
生效即可

elasticsearch安装时遇到的问题

https://www.stonewu.com/post/elasticsearch-setup.html

作者

StoneWu

发布于

2017-08-10

更新于

2023-02-15

许可协议

评论