nignx -V 查询配置
--prefix=/usr/share/nginx (nginx安装目录)
--conf-path=/etc/nginx/nginx.conf (主配置文件路径)
--pid-path=/run/nginx.pid (pid文件位置)
--error-log-path=stderr (错误日志位置)
--http-log-path=/var/log/nginx/access.log (访问日志路径)
--modules-path= (模组路径)
--http-client-body-temp-path= (客户端请求主体临时缓存路径)
--http-proxy-temp-path= (代理临时缓存路径)
--http-fastcgi-temp-path= (FastCGI临时缓存路径)

模块
--with-file-aio (异步I/O多路复用)
--with-threads (多线程模块/线程池支持)
--with-http_addition_module (响应前后追加内容模块)
--with-http_dav_module (WebDAV支持/文件管理模块)
--with-http_flv_module (FLV视频流支持模块)
--with-http_random_index_module (随机主页模块)
--with-http_realip_module (获取真实IP模块)
--with-http_auth_request_module (基于子请求的认证模块)

安全模块
--with-http_secure_link_module (安全链接/防盗链模块)
--with-http_slice_module (大文件分片缓存模块)
--with-http_ssl_module (SSL/TLS安全证书支持)
--with-http_stub_status_module (访问状态监控模块)
--with-http_sub_module (替换返回文本内容模块)
--with-http_v2_module (HTTP/2协议支持)

代理模块
--with-stream (TCP/UDP代理及负载均衡模块)
--with-stream_realip_module (TCP/UDP代理获取真实IP)
--with-stream_ssl_module (TCP/UDP代理SSL/TLS支持)
--with-stream_ssl_preread_module (TCP/UDP代理SNI预读解析) v

← 返回笔记列表