1 #运行用户 2 user nobody; 3 #启动进程,通常设置成和cpu的数量相等 4 worker_processes 1; 5 6 #全局错误日志及PID文件 7 #error_log logs/error.log; 8 #error_log logs/error.log notice;... ...
分类:
其他好文 时间:
2019-02-27 10:29:06
阅读次数:
174
user nobody; worker_processes 8; events { use epoll; worker_connections 2048; } http { include mime.types; default_type application/octet-stream; send... ...
分类:
其他好文 时间:
2019-02-22 12:38:32
阅读次数:
294
#nginx进程,一般设置为和cpu核数一样worker_processes 4; #错误日志存放目录 error_log /data1/logs/error.log crit; #运行用户,默认即是nginx,可不设置user nginx #进程pid存放位置pid /application/ng ...
分类:
其他好文 时间:
2019-02-20 18:40:14
阅读次数:
162
#nginx开启的进程数worker_processes 4; #4核CPU #定义全局错误日志定义类型,[debug|info|notice|warn|crit]error_log logs/error.log info; #指定进程ID存储文件位置pid logs/nginx.pid; #一个n ...
分类:
Web程序 时间:
2019-02-20 13:15:17
阅读次数:
178
#nginx开启的进程数worker_processes 4; #4核CPU #定义全局错误日志定义类型,[debug|info|notice|warn|crit]error_log logs/error.log info; ##指定进程ID存储文件位置pid logs/nginx.pid; eve ...
分类:
其他好文 时间:
2019-02-20 13:14:16
阅读次数:
170
高可用环境准备 后端服务器主配置文件 [192.168.2.7-root@web01~]#cat /etc/nginx/nginx.conf user www; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var... ...
分类:
其他好文 时间:
2019-02-18 12:51:10
阅读次数:
190
#user nobody; #开启进程数 <=CPU数 worker_processes 1; #错误日志保存位置 #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info;... ...
分类:
其他好文 时间:
2019-02-15 22:27:22
阅读次数:
195
nginx.conf #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... ...
备注:worker_processes 1(数量建议跟系统CPU的核数相同,例如:2个CPU,每个CPU4核,建议为8),worker_connections 建议小于worker_rlimit_nofile 备注:use 指令根据操作系统相关,linux 操作系统使用use epoll worke ...
分类:
其他好文 时间:
2019-02-01 11:19:12
阅读次数:
163
#运行用户 user nobody; #启动进程,通常设置成和cpu的数量相等 worker_processes 1; #全局错误日志及PID文件 #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs ...
分类:
其他好文 时间:
2019-01-27 21:36:47
阅读次数:
167