nginx学习随笔--worker_rlimit_nofile

来源:互联网 发布:紫川软件 编辑:程序博客网 时间:2024/05/17 02:36

nginx学习随笔–worker_rlimit_nofile

  • 英文原文:
Syntax: worker_rlimit_nofile number;Default: Context:    main

Changes the limit on the maximum number of open files (RLIMIT_NOFILE) for worker processes. Used to increase the limit without restarting the main process.

  • 中文翻译:

    为nginx工作进程改变打开最多文件描述符数目的限制。用来在不重启主进程的情况下增加限制。

例如:

worker_rlimit_nofile 204800;

理论上这个值是最多打开文件数(ulimit -n)与nginx工作进程相除。