您的位置:首页 > 运维架构 > Nginx

nginx学习随笔--worker_rlimit_nofile

2017-09-11 13:58 441 查看

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工作进程相除。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: