Skip to content

Commit 18bfdf3

Browse files
author
wuyc
committed
更新新的构建参数
1 parent 81a2e0f commit 18bfdf3

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

How-To/从源码构建nginx.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
- **--with-poll_module 和 --without-poll_module**
3939

4040
启用或禁用构建允许服务器使用 `poll()` 方法的模块。如果平台不支持其他更合适的方法(如 kqueue、epoll 或 /dev/poll),则将自动构建该模块。
41+
- **with-threads**
42+
43+
允许使用线程池[thread pools](http://nginx.org/en/docs/ngx_core_module.html#thread_pool)
44+
- **with-file-aio**
45+
46+
启用在FreeBSD和Linux上[asynchronous file I/O](http://nginx.org/en/docs/http/ngx_http_core_module.html#aio) (aio)指令的使用
4147
- **--without-http_gzip_module**
4248

4349
禁用构建 HTTP 服务器[响应压缩](http://nginx.org/en/docs/http/ngx_http_gzip_module.html)模块。需要 zlib 库来构建和运行此模块。
@@ -49,7 +55,40 @@
4955
禁用构建 HTTP 服务器[代理模块](http://nginx.org/en/docs/http/ngx_http_proxy_module.html)
5056
- **--with-http_ssl_module**
5157

52-
启用构建可将 [HTTPS 协议支持](http://nginx.org/en/docs/http/ngx_http_ssl_module.html)添加到 HTTP 服务器的模块。默认情况下,此模块参与构建。构建和运行此模块需要 OpenSSL 库支持。
58+
允许构建可将 [HTTPS 协议支持](http://nginx.org/en/docs/http/ngx_http_ssl_module.html)添加到 HTTP 服务器的模块。默认情况下,此模块参与构建。构建和运行此模块需要 OpenSSL 库支持。
59+
- **with-http_v2_module**
60+
61+
允许构建一个支持[HTTP/2](http://nginx.org/en/docs/http/ngx_http_v2_module.html) 的模块。默认情况下,该模块不构建。
62+
- **with-http_realip_module**
63+
64+
允许构建[ngx_http_realip_module](http://nginx.org/en/docs/http/ngx_http_realip_module.html) 模块,该模块将客户端地址更改为在指定的header中发送的地址。该模块默认不构建。
65+
- **with-http_addition_module**
66+
67+
允许构建[ngx_http_addition_module](http://nginx.org/en/docs/http/ngx_http_addition_module.html) 模块,该模块能够在响应之前和之后添加文本。该模块默认不构建。
68+
- **with-http_xslt_module****with-http_xslt_module=dynamic**
69+
70+
允许构建使用一个或者多个XSLT样式表转化为XML响应的[ngx_http_xslt_module](http://nginx.org/en/docs/http/ngx_http_xslt_module.html)。该模块默认不构建。[libxslt](http://xmlsoft.org/XSLT/)[libxml2](http://xmlsoft.org/) 库需要这个模块来构建和启动。
71+
- **with-http_image_filter_module****with-http_image_filter_module=dynamic**
72+
73+
允许构建[ngx_http_image_filter_module](http://nginx.org/en/docs/http/ngx_http_image_filter_module.html) 模块,该模块可以转换 JPEG, GIF, PNG, 和 WebP 格式的图片。该模块默认不构建。
74+
- **with-http_geoip_module****with-http_geoip_module=dynamic**
75+
76+
允许构建[ngx_http_geoip_module](http://nginx.org/en/docs/http/ngx_http_geoip_module.html) 模块。该模块根据客户端 IP 地址和预编译[MaxMind](https://www.maxmind.com/en/home) 的数据库创建变量。该模块默认不构建。
77+
- **with-http_sub_module**
78+
79+
允许构建[ngx_http_sub_module](http://nginx.org/en/docs/http/ngx_http_sub_module.html) 模块。该模块通过将一个指定的字符串替换为另一个来修改相应。该模块默认不构建。
80+
-- **with-http_dav_module**
81+
82+
允许构建[ngx_http_dav_module ](http://nginx.org/en/docs/http/ngx_http_dav_module.html) 模块。该模块通过WebDEV协议提供文件管理自动化。该模块默认不构建。
83+
-- **with-http_flv_module**
84+
85+
允许构建[with-http_flv_module](http://nginx.org/en/docs/http/ngx_http_flv_module.html) 模块。该模块为 Flash Videos (FLV) 文件提供伪流服务器端的支持。该模块默认不构建。
86+
-- **with-http_mp4_module**
87+
88+
允许构建[with-http_mp4_module](http://nginx.org/en/docs/http/ngx_http_mp4_module.html) 模块。该模块为 MP4 文件提供伪流服务器端的支持。该模块默认不构建。
89+
-- **with-http_gunzip_module**
90+
91+
允许构建[with-http_gunzip_module](http://nginx.org/en/docs/http/ngx_http_gunzip_module.html) 模块。该模块使用 `Content-Encoding: gzip` 来解压缩响应对于那些不支持`gzip`编码方法的客户端。该模块默认不构建。
5392
- **--with-pcre=path**
5493

5594
设置 PCRE 库的源路径。发行版(4.4 至 8.40 版本)需要从 [PCRE](http://www.pcre.org/) 站点下载并提取。其余工作由 nginx 的 `./configure``make` 完成。该库是 [location](http://nginx.org/en/docs/http/ngx_http_core_module.html#location) 指令和 [ngx_http_rewrite_module](http://nginx.org/en/docs/http/ngx_http_rewrite_module.html) 模块中正则表达式支持所必需的。

0 commit comments

Comments
 (0)