美文网首页
nginx core 配置文件

nginx core 配置文件

作者: xncode | 来源:发表于2021-06-09 17:06 被阅读0次

    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 配置文件

          本文链接:https://www.haomeiwen.com/subject/ygrzsltx.html