JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

nginx 报 accept4() failed (24: Too many open files)

发布时间 2023-11-29 20:10:58作者: walkersss

nginx 报 accept4() failed (24: Too many open files)
ulimit -a
ulimit -n 204800
vim /etc/security/limits.conf
<domain> <type> <item> <value>
* soft nofile 204800
* hard nofile 204800
* soft nproc 1000000
* hard nproc 1000000

vi  nginx.conf

worker_processes auto;
worker_rlimit_nofile 65535;

nginx -t
nginx -s reload

cat /proc/nginx_worker_pid/limits

    本栏目推荐文章
  • IDEA项目名称后面出现中括号,模块Modules的名子和文件夹名称不同,可以右键修改名称也可以在File->Project Structure 修改Modules的Name(快捷键ctrl+Shift+Alt+s)
  • nginx 一个域名区分pc和手机!
  • 安装npm install报错npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npmjs.org/webpack-subresource-integrity failed, reason
  • Pycharm读excel文件报错xlrd.biffh.XLRDError: Excel xlsx file not supported
  • nginx启用HTTP2特性
  • fish和pacman:“error: Unable to read input file: 是一个目录”报错的处理
  • 初中英语优秀范文100篇-056I have the courage to accept the challenge-我有勇气接受挑战
  • nginx代理header丢失的问题
  • Nginx——配置代理-服务的代理
  • "nginx.conf" E514 : write error (file system full?)
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们