码迷,mamicode.com
首页 > 系统相关 > 详细

优化 Nginx worker 进程最大打开文件数

时间:2017-05-31 13:54:55      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:mit   文件   html   ulimit   ken   types   include   lis   code   

[root@localhost ~]# cat /usr/local/nginx/conf/nginx.conf
worker_processes  2;
worker_cpu_affinity 01 10;
worker_rlimit_nofile 65535; # worker 进程最大打开文件数,可设置为优化后的 ulimit -HSn 的结果 user nginx nginx; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server_tokens off; server { listen 80; server_name www.abc.com; location / { root html/www; index index.html index.htm; } } }

 

 

 

 

    

优化 Nginx worker 进程最大打开文件数

标签:mit   文件   html   ulimit   ken   types   include   lis   code   

原文地址:http://www.cnblogs.com/pzk7788/p/6923493.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!