问题:
ERROR: [1] bootstrap checks failed[1]: max number of threads [3795] for user [es] is too low
解决方法:
在 Linux 中,用户允许的最大线程数的配置文件为/etc/security/limits.conf
,我们需要在该配置文件中添加下面配置
es(用户名) - nproc 4096
max file descriptors [1024] for elasticsearch process is too low, increase to at least [4029]
es(用户名) hard nofile 65536 es(用户名) soft nofile 65536