nginx core 配置文件

main

daemon on/off;

debug_points abort | stop;

env MALLOC_OPTIONS; 保留环境变量
env PERL5LIB=/data/site/modules;
env OPENSSL_ALLOW_PROXY_CERTS=1;

events
error_log file [level]; 适用main, http, mail, stream, server, location
include 适用任意上下文
load_module
lock_file 用于实现上述的accpet_mutex
master_process on/off;
pcre_jit 可加快正则类url的匹配
pid logs/nginx.pid;
ssl_engine device; 设置ssl加速器
thread_pool default threads=32 max_queue=65536;
timer_resolution 100ms;
user nobody nobody;
worker_cpu_affinity auto [cpumask];
worker_priority 0;
worker_processes 1;
worker_rlimit_core size; 工作进程最大核心文件大小
worker_rlimit_nofile number; 工作进程打开的最大文件数量
worker_shutdown_timeout time;
working_directory directory; 工作路径

events

accept_mutex on/off; 【worker进程轮流接收连接,默认否】
accept_mutex_delay 500ms;
debug_connection 127.0.0.1; 针对特定地址来启用详细日志
use method;
multi_accept on/off;
worker_aio_requests 32;
worker_connections 512;

你可能感兴趣的:(nginx core 配置文件)