首页 > 代码库 > max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]

max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]

 

在/etc/syscurity/limits.conf

加入以下两行:

elastic hard nofile 65536

elastic soft nofile  65536

#备注:elastic这里是指定用户elastic 当然可以用*表示所有人

sh-4.1# tail -2 /etc/security/limits.conf 
* hard nofile 65536
* soft nofile 65536

 

max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]