原文:https://blog.csdn.net/weiguang1017/article/details/54381439

 

(报错1)启动服务出现:

Error: Too many open files

原因排查:文件打开数 ,我这边设置,没发现问题

 fs.file-max = 999999    #/etc/sysctl.conf

 * soft nproc 307200      #/etc/security/limits.conf

* hard nproc 307200     #/etc/security/limits.conf

 

(报错2)messages日志查看出现:

tail: inotify cannot be used, reverting to polling: Too many open files

 

vim /etc/sysctl.conf   

fs.inotify.max_user_watches = 1048576        #表示同一用户同时可以添加的watch数目(watch一般是针对目录,决定了同时同一用户可以监控的目录数量,默认8192)
fs.inotify.max_user_instances = 1048576      #表示每一个real user ID可创建的inotify instatnces的数量上限,默认128.

 

sysctl -p 加载 

 

相关文章:

  • 2022-12-23
  • 2021-05-27
  • 2021-07-10
猜你喜欢
  • 2021-09-02
  • 2022-12-23
  • 2022-03-09
  • 2021-12-24
  • 2021-05-23
  • 2021-08-01
  • 2022-01-03
相关资源
相似解决方案