搭建elasticsearch过程中遇到的问题
ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
修改系统配置文件/etc/security/limits.conf ,修改以下参数值大小(一般系统默认是1024),如果没有则按如下格式添加。
* soft nofile 512000
* hard nofile 512000
[2]: max number of threads [1024] for user [elasticsearch] is too low, increase to at least [2048]
解决方法:进入limits.d下的配置文件:vi /etc/security/limits.d/90-nproc.conf ,修改配置如下:
[plain] * soft nproc 1024
- * soft nproc 2048