配置了
sudo vim /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
 
单独起进程没问题, 放到supervisor下监管启动,则报错
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
 
原因: 应该是supervisor监管的进程配置来自于supervisor所在环境配置, supervisor需要重启进程才能加载最新环境配置。
 
解决办法: kill supervisor进程,重启supervisor。(有时候服务器重启,启动supervisor都不会生效,需要手动kill然后重启才行。 不清楚哪里是什么坑。)
 

相关文章:

  • 2021-12-19
  • 2022-12-23
  • 2021-10-24
  • 2021-11-16
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-16
  • 2021-07-24
  • 2022-12-23
  • 2021-10-24
  • 2021-11-16
  • 2021-07-03
相关资源
相似解决方案