nginx core 配置文件

main

daemon on/off;

debug_points abort | stop;

env MALLOC_OPTIONS; 保留環(huán)境變量
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 用于實(shí)現(xiàn)上述的accpet_mutex
master_process on/off;
pcre_jit 可加快正則類url的匹配
pid logs/nginx.pid;
ssl_engine device; 設(shè)置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; 工作進(jìn)程最大核心文件大小
worker_rlimit_nofile number; 工作進(jìn)程打開的最大文件數(shù)量
worker_shutdown_timeout time;
working_directory directory; 工作路徑

events

accept_mutex on/off; 【worker進(jìn)程輪流接收連接,默認(rèn)否】
accept_mutex_delay 500ms;
debug_connection 127.0.0.1; 針對(duì)特定地址來啟用詳細(xì)日志
use method;
multi_accept on/off;
worker_aio_requests 32;
worker_connections 512;

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容