单独在shell运行elasticsearch正常,但用supervisord运行elasticsearch报错: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536] 需要更改默认的配置,如: gswyhq@gswyhq-pc:/etc/supervisor/conf.d$ sudo vim elasticsearch.conf [supervisord] minfds=65536 minprocs=32768
发布评论
评论(2)
试下把supervisord.conf中对应es项目的command换成:
su -c "/usr/local/data/elasticsearch/bin/elasticsearch" es(这里换成你的es用户名)
单独在shell运行elasticsearch正常,但用supervisord运行elasticsearch报错:
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
需要更改默认的配置,如:
gswyhq@gswyhq-pc:/etc/supervisor/conf.d$ sudo vim elasticsearch.conf
[supervisord]
minfds=65536
minprocs=32768
[program:elasticsearch]
command=/usr/local/elasticsearch-5.3.0/bin/elasticsearch