#基本配置: #user nobody;#配置worker进程运行用户worker_processes 1;#配置工作进程数目,根据硬件调整、通常等于CPU数量或者2倍于CPU数量 比如四核电脑(可以配置4或者8) #error_log logs/error.log; #配置日志类型、默认为erro ...
分类:
其他好文 时间:
2019-07-06 13:38:01
阅读次数:
141
#运行用户,默认即是nginx,可修改user root;#nginx进程,一般设置为和cpu核数一样worker_processes 1; #error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/erro ...
分类:
其他好文 时间:
2019-07-01 10:49:45
阅读次数:
113
#user nobody; # #开启的worker数量,这里保存和cpu数量一致 worker_processes 6; worker_cpu_affinity 000001 000010 000100 001000 010000 100000; #制定error日志的格式为crit(error日... ...
分类:
其他好文 时间:
2019-06-29 23:48:51
阅读次数:
133
信号列表: TERM, INT Quick shutdown QUIT Graceful shutdown 优雅的关闭进程,即等请求结束后再关闭 HUP Configuration reload ,Start the new worker processes with a new configura ...
分类:
其他好文 时间:
2019-06-26 01:14:36
阅读次数:
130
大数据学习第五天 ulimit 查看进程最大文件描述符创建数 -a all详细信息 nginx_config 文件记录 #user nobody ngx_work进程属主 worker_processes 单核进程数 worker_connections 最大连接数 nginx单连接双文件描述符 一 ...
分类:
其他好文 时间:
2019-06-11 20:49:08
阅读次数:
157
#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; event ...
分类:
其他好文 时间:
2019-05-24 18:38:24
阅读次数:
134
1. Nginx 进程模型简介 多进程+多路复用 master 进程 、 worker 进程 启动nginx,查看nginx的线程,可以发现: worker_processes 1 cpu 总核心数 epoll . select .... #user nobody; 用户 worker_proces ...
分类:
其他好文 时间:
2019-05-23 00:14:57
阅读次数:
122
user nginx; #数值和cpu核数个数一致worker_processes 8; #worker与cpu绑定 worker_cpu_affinity 0001 0010 0100 1000 1001 1010 1011 1100; #更改worker进程的最大打开文件数限制。如果没设置的话, ...
分类:
其他好文 时间:
2019-05-20 17:26:09
阅读次数:
161
默认的 nginx 配置文件 nginx.conf 内容如下: 1 #user nobody; 2 worker_processes 1; 3 4 #error_log logs/error.log; 5 #error_log logs/error.log notice; 6 #error_log ...
分类:
其他好文 时间:
2019-05-16 23:00:16
阅读次数:
157
nginx配置文件nginx.conf超详细讲解 #nginx进程,一般设置为和cpu核数一样worker_processes 4; #错误日志存放目录 error_log /data1/logs/error.log crit; #运行用户,默认即是nginx,可不设置user nginx #进程p ...
分类:
其他好文 时间:
2019-05-01 18:37:04
阅读次数:
152