目前的 nginx 是不支持输出 response 报文体的 使用body_filter_by_lua来分配请求报文体给一个nginx变量。下面是一个示例worker_processes 1;error_log logs/error.log;events { worker_connections 1...
分类:
其他好文 时间:
2015-09-09 18:58:51
阅读次数:
319
#user ?nobody; worker_processes ?1; #error_log ?logs/error.log; #error_log ?logs/error.log ?notice; #error_log ?logs/error.log ?info; #pid ? ? ? ?logs/nginx.pid; events { ? ? worker_c...
分类:
其他好文 时间:
2015-09-05 12:35:47
阅读次数:
156
# 使用的用户和组
user nginx nginx;
# 指定工作衍生进程数;一般几核CPU就配置几个。nginx进程数,建议设置为等于CPU总核心数。
worker_processes 1;
#全局错误日志及PID文件;全局错误日志定义类型,[ debug | info | notice | warn | error | crit ]
error_log /var/log/nginx/error.l...
分类:
其他好文 时间:
2015-08-27 13:23:34
阅读次数:
245
user ?ftp; worker_processes ?2; worker_rlimit_nofile 1024; events { ? ? use epoll; ? ? worker_connections ?1024; } http { ? ? include ? ? ? mime.types; ? ? default_type ?application...
分类:
其他好文 时间:
2015-08-27 11:23:11
阅读次数:
193
在此记录下Nginx服务器nginx.conf的配置文件说明, 部分注释收集与网络.#运行用户user www-data;#启动进程,通常设置成和cpu的数量相等worker_processes 1;#全局错误日志及PID文件error_log /var/log/nginx/error.log;pi...
分类:
其他好文 时间:
2015-08-26 19:19:09
阅读次数:
129
在此记录下Nginx服务器nginx.conf的配置文件说明, 部分注释收集于网络. user?? ?www-data; ? ? ? ? ? ? ? ? ? ? ? ?#运行用户 worker_processes? 1; ? ? ? ? ? ? ? ? ?#启动进程,通常设...
分类:
其他好文 时间:
2015-08-21 09:39:58
阅读次数:
154
据网上有人说nginx的配置中:nginx支持的最大连接数与以下因素有关:worker_processes 1;events {worker_connections 1024;}ulimit -a 显示的open file:1024但是经过测试,结果如下:cpu:6核 (用cat /proc/cp....
分类:
其他好文 时间:
2015-08-19 13:07:50
阅读次数:
149
Nginx的配置文档详解,在这儿做个总结,以便以后使用的时间查看。
以下大部分自己整理,部分来自参考
#设置用户
#user nobody;
#启动进程数(一般和服务器的CPU相同)
#可以使用 $ cat /proc/cpuinfo 查看内核数
worker_processes 2;
#设置错误文件存放的路径
#error_log logs...
分类:
其他好文 时间:
2015-08-17 17:30:22
阅读次数:
130
一.nginx基本配置与参数说明 #运行用户 user?nobody; #启动进程,通常设置成和cpu的数量相等 worker_processes??1; #全局错误日志及PID文件 #error_log??logs/error.log;
#error_log??logs/error.log??n...
分类:
其他好文 时间:
2015-08-14 15:53:43
阅读次数:
112
#user nobody;worker_processes 1; #error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info; #pid logs/ng...
分类:
移动开发 时间:
2015-08-12 22:58:31
阅读次数:
306