我正在尝试使用official documentation
在jelastic上安装elasticsearch最终在启动容器时出现错误:
ERROR: [1] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
我尝试了多种设置ulimit的可能性,但没有一个起作用。
设置此设置的最佳方法是什么?
答案 0 :(得分:2)
我终于找到了一种方法,方法是编辑文件/usr/local/bin/docker-entrypoint.sh
并在开始处添加以下内容:
ulimit -n 65536
这是最好的方法吗?