nginx的模块类别
核心模块
标准的http模块
可选的http模块
邮件模块
第三方扩展模块
nginx基本核心配置的类别
用于调试,定位问题
正常运行的必备配置
性能优化类
事件类 events
正常运行的必备配置
user group worker_rlimit_nofile --> ulimit -n worker_rlimit_sigpending --> ulimit -i
优化性能相关配置
worker_cpu_affinity worker_processes ssl_engine device worker_priority
跟事件相关的配置 events
accept_mutex accept_mutex_delay lock_file use worker_connections
用于调试,定位问题
daemon error_log master_process
httpd web 功能
server {} listen server_name server_name_hash_bucket_size location location {} root index alias error_page code uri try_files --> 相当于重定向
网络连接相关的设置
keepalive_timeout keepalive_disabled keepalive_requests tcp_nodelay client_body_timeout client_header_timeout
对客户端请求的限制
limit_rate limit_rate_after limit_except method client_max_body_size
文件操作的优化
open_file_cache_min_use aio sendfile open_file_cache max inactive open_file_cache_errors open_file_cache_vaild
对客户端请求的特殊处理
ignore_invalid_headers log_not_fount resolve address resolve timeout server_tokens
时间: 2024-11-08 06:16:38