|
77 | 77 | - **with-http_sub_module** |
78 | 78 |
|
79 | 79 | 允许构建[ngx_http_sub_module](http://nginx.org/en/docs/http/ngx_http_sub_module.html) 模块。该模块通过将一个指定的字符串替换为另一个来修改相应。该模块默认不构建。 |
80 | | --- **with-http_dav_module** |
| 80 | +- **with-http_dav_module** |
81 | 81 |
|
82 | 82 | 允许构建[ngx_http_dav_module ](http://nginx.org/en/docs/http/ngx_http_dav_module.html) 模块。该模块通过WebDEV协议提供文件管理自动化。该模块默认不构建。 |
83 | | --- **with-http_flv_module** |
| 83 | +- **with-http_flv_module** |
84 | 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** |
| 85 | + 允许构建[ngx_http_flv_module](http://nginx.org/en/docs/http/ngx_http_flv_module.html) 模块。该模块为 Flash Videos (FLV) 文件提供伪流服务器端的支持。该模块默认不构建。 |
| 86 | +- **with-http_mp4_module** |
87 | 87 |
|
88 | | - 允许构建[with-http_mp4_module](http://nginx.org/en/docs/http/ngx_http_mp4_module.html) 模块。该模块为 MP4 文件提供伪流服务器端的支持。该模块默认不构建。 |
89 | | --- **with-http_gunzip_module** |
| 88 | + 允许构建[ngx_http_mp4_module](http://nginx.org/en/docs/http/ngx_http_mp4_module.html) 模块。该模块为 MP4 文件提供伪流服务器端的支持。该模块默认不构建。 |
| 89 | +- **with-http_gunzip_module** |
90 | 90 |
|
91 | | - 允许构建[with-http_gunzip_module](http://nginx.org/en/docs/http/ngx_http_gunzip_module.html) 模块。该模块使用 `Content-Encoding: gzip` 来解压缩响应对于那些不支持`gzip`编码方法的客户端。该模块默认不构建。 |
| 91 | + 允许构建[ngx_http_gunzip_module](http://nginx.org/en/docs/http/ngx_http_gunzip_module.html) 模块。该模块使用 `Content-Encoding: gzip` 来解压缩响应对于那些不支持`gzip`编码方法的客户端。该模块默认不构建。 |
| 92 | +- **with-http_auth_request_module** |
| 93 | + |
| 94 | + 允许构建[ngx_http_auth_request_module](http://nginx.org/en/docs/http/ngx_http_auth_request_module.html) 模块。该模块基于子请求的结果实现客户端授权。该模块默认不构建。 |
| 95 | +- **with-http_random_index_module** |
| 96 | + |
| 97 | + 允许构建[ngx_http_random_index_module](http://nginx.org/en/docs/http/ngx_http_random_index_module.html) 模块。该模块处理斜杠字符 ('/') 结尾的请求,并选择目录中的随机文件作为索引文件。该模块默认不构建。 |
| 98 | +- **with-http_secure_link_module** |
| 99 | + |
| 100 | + 允许构建[ngx_http_secure_link_module](http://nginx.org/en/docs/http/ngx_http_secure_link_module.html) 模块。该模块默认不构建。 |
| 101 | +- **with-http_degradation_module** |
| 102 | + |
| 103 | + 允许构建 `with-http_degradation_module` 模块。该模块默认不构建。 |
| 104 | +- **with-http_slice_module** |
| 105 | + |
| 106 | + 允许构建[ngx_http_slice_module](http://nginx.org/en/docs/http/ngx_http_slice_module.html) 将请求拆分为子请求的模块,每个模块都返回一定范围的响应。该模块提供了更有效的大响应缓存。该模块默认不构建。 |
| 107 | +- **with-http_stub_status_module** |
| 108 | + |
| 109 | + 允许构建[ngx_http_stub_status_module](http://nginx.org/en/docs/http/ngx_http_stub_status_module.html) 模块。该模块提供对基本状态信息的访问。该模块默认不构建。 |
| 110 | +- **without-http_charset_module** |
| 111 | + |
| 112 | + 禁用构建压缩 HTTP 响应的[ngx_http_charset_module](http://nginx.org/en/docs/http/ngx_http_charset_module.html) 模块。该模块将指定的字符集添加到 `Content-Type` 响应头字段,还可以将数据从一个字符集转化为另一个字符集。 |
| 113 | +- **without-http_gzip_module** |
| 114 | + |
| 115 | + 禁用构建压缩 HTTP 响应的[compresses responses](http://nginx.org/en/docs/http/ngx_http_gzip_module.html) 模块。构建和运行这个模块需要 zlib 库。 |
| 116 | +- **without-http_ssi_module** |
| 117 | + |
| 118 | + 禁用构建[without-http_ssi_module](http://nginx.org/en/docs/http/ngx_http_gzip_module.html) 模块。该模块在通过它的响应中处理 SSI (服务端包含) 命令。 |
| 119 | +- **without-http_userid_module** |
| 120 | + |
| 121 | + 允许构建[ngx_http_userid_module](http://nginx.org/en/docs/http/ngx_http_userid_module.html) 模块。该模块设置适合客户端识别的cookie。 |
| 122 | +- **without-http_access_module** |
| 123 | + |
| 124 | + 禁用构建[ngx_http_access_module](http://nginx.org/en/docs/http/ngx_http_access_module.html) 模块。该模块允许限制对某些客户端地址的访问。 |
| 125 | +- **without-http_auth_basic_module** |
| 126 | + |
| 127 | + 禁用构建[ngx_http_auth_basic_module](http://nginx.org/en/docs/http/ngx_http_auth_basic_module.html) 模块。该模块允许通过使用HTTP基本身份验证协议验证用户名密码来限制对资源的访问。 |
| 128 | +- **without-http_mirror_module** |
| 129 | + |
| 130 | + 禁用构建[ngx_http_mirror_module](http://nginx.org/en/docs/http/ngx_http_mirror_module.html) 模块。该模块通过创建后台镜像子请求来实现原始请求的镜像。 |
| 131 | +- **without-http_autoindex_module** |
| 132 | + |
| 133 | + 禁用构建[ngx_http_autoindex_module](http://nginx.org/en/docs/http/ngx_http_autoindex_module.html) 模块。该模块处理以斜杠('/')结尾的请求,并在[ngx_http_index_module](http://nginx.org/en/docs/http/ngx_http_index_module.html) 模块找不到索引文件的情况下生成目录列表。 |
| 134 | +- **without-http_geo_module** |
| 135 | + |
| 136 | + 禁用构建[ngx_http_geo_module](http://nginx.org/en/docs/http/ngx_http_geo_module.html) 模块。该模块使用取决于客户端IP地址的值创建变量。 |
| 137 | +- **without-http_map_module** |
| 138 | + |
| 139 | + 禁用构建[ngx_http_map_module](http://nginx.org/en/docs/http/ngx_http_map_module.html) 模块。该模块使用取决于其他变量的值创建变量。 |
| 140 | +- **without-http_split_clients_module** |
| 141 | + |
| 142 | + 禁用构建[ngx_http_split_clients_module](http://nginx.org/en/docs/http/ngx_http_split_clients_module.html) 模块。该模块为 A/B 测试创建变量。 |
| 143 | +- **without-http_referer_module** |
| 144 | + |
| 145 | + 禁用构建[ngx_http_referer_module](http://nginx.org/en/docs/http/ngx_http_referer_module.html) 模块。该模块可以阻止对 “Referer” 头字段中具有无效值的请求访问站点。 |
| 146 | +- **without-http_proxy_module** |
| 147 | + |
| 148 | + 禁用构建允许HTTP服务器重定向的请求和更改请求URI [redirect requests and change URI of requests](http://nginx.org/en/docs/http/ngx_http_rewrite_module.html) 的模块。 |
| 149 | +- **without-http_proxy_module** |
| 150 | + |
| 151 | + 禁用构建[proxying module](http://nginx.org/en/docs/http/ngx_http_proxy_module.html) HTTP服务器代理模块。 |
| 152 | +- **without-http_fastcgi_module** |
| 153 | + |
| 154 | + 禁用构建将请求传递给FastCGI服务器的[ngx_http_fastcgi_module](http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html)模块。 |
| 155 | +- **without-http_uwsgi_module** |
| 156 | + |
| 157 | + 禁用构建将请求传递给uwsgi服务器的[ngx_http_uwsgi_module](http://nginx.org/en/docs/http/ngx_http_uwsgi_module.html) 模块。 |
| 158 | +- **without-http_scgi_module** |
| 159 | + |
| 160 | + 禁用构建将请求传递给SCGI服务器的[ngx_http_scgi_module](http://nginx.org/en/docs/http/ngx_http_scgi_module.html) 模块。 |
| 161 | +- **without-http_grpc_module** |
| 162 | + |
| 163 | + 禁用构建将请求传递给个RPC服务器[ngx_http_grpc_module](http://nginx.org/en/docs/http/ngx_http_grpc_module.html) 模块。 |
| 164 | +- **without-http_memcached_module** |
| 165 | + |
| 166 | + 禁用构建[ngx_http_memcached_module](http://nginx.org/en/docs/http/ngx_http_memcached_module.html) 模块。该模块从 memcached 服务器获得响应。 |
| 167 | +- **without-http_limit_conn_module** |
| 168 | + |
| 169 | + 禁用构建[ngx_http_limit_conn_module](http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html) 模块。该模块限制每个密钥的链接数,例如,来自单个IP地址的链接数。 |
| 170 | +- **without-http_limit_req_module** |
| 171 | + |
| 172 | + 禁用构建限制每个键的请求处理速率[ngx_http_limit_req_module](http://nginx.org/en/docs/http/ngx_http_limit_req_module.html) 模块。例如,来自单个IP地址的请求的处理速率。 |
| 173 | +- **without-http_empty_gif_module** |
| 174 | + |
| 175 | + 禁用构建发出单像素透明GIF[emits single-pixel transparent GIF](http://nginx.org/en/docs/http/ngx_http_empty_gif_module.html) 模块。 |
| 176 | +- **without-http_browser_module** |
| 177 | + |
| 178 | + 禁用构建[ngx_http_browser_module](http://nginx.org/en/docs/http/ngx_http_browser_module.html) 模块。该模块创建的值的变量取决于 “User-Agent” 请求标头字段的值。 |
| 179 | +- **without-http_upstream_hash_module** |
| 180 | + |
| 181 | + 禁用构建实现散列负载均衡的方法[hash](http://nginx.org/en/docs/http/ngx_http_upstream_module.html#hash) 模块。 |
| 182 | +- **without-http_upstream_ip_hash_module** |
| 183 | + |
| 184 | + 禁用构建实现[IP_Hash](http://nginx.org/en/docs/http/ngx_http_upstream_module.html#ip_hash) 负载均衡方法的模块。 |
| 185 | +- **without-http_upstream_least_conn_module** |
| 186 | + |
| 187 | + 禁用构建实现[least_conn](http://nginx.org/en/docs/http/ngx_http_upstream_module.html#least_conn) 负载均衡方法的模块。 |
| 188 | +- **without-http_upstream_keepalive_module** |
| 189 | + |
| 190 | + 禁用构建[caching of connections](http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive) 模块。该模块提供到上游服务器的链接缓存。 |
| 191 | +- **without-http_upstream_zone_module** |
| 192 | + |
| 193 | + 禁用构建[zone](http://nginx.org/en/docs/http/ngx_http_upstream_module.html#zone) 模块。该模块可以将上游组的运行时状态存储在共享内存区域中。 |
| 194 | +- **with-http_perl_module**和**with-http_perl_module=dynamic** |
| 195 | + |
| 196 | + 构建[嵌入式Perl](http://nginx.org/en/docs/http/ngx_http_perl_module.html) 模块。该模块默认不构建。 |
| 197 | +- **--with-perl_modules_path=path** |
| 198 | + |
| 199 | + 定义一个保留Perl模块的路径。 |
| 200 | +- **with-perl=path** |
| 201 | + |
| 202 | + 设置Perl二进制文件的名字。 |
| 203 | +- **http-client-body-temp-path** |
| 204 | + |
| 205 | + 定义用于存储保存客户端的请求主体的临时文件的目录。安装后,可以使用[client_body_temp_path](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_temp_path) 指令在nginx.conf配置文件中始终更改目录。默认的目录名为 `prefix/client_body_temp`。 |
| 206 | +- **http-proxy-temp-path=path** |
| 207 | + |
| 208 | + 定义一个目录,用于存储临时文件和从代理服务器接受的数据。安装后可以使用[proxy_temp_path](http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_temp_path) 指令在nginx.conf配置文件中更改。默认的目录名为 `profix/proxy_temp` |
| 209 | +- **http-fastcgi-temp-path=path** |
| 210 | + |
| 211 | + 定义一个目录,用于存储临时文件和从 FastCGI 服务器接受的数据。安装后可以使用[fastcgi_temp_path](http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_temp_path) 指令在nginx.conf配置文件中更改。 默认的目录为 `prefix/fastcgi_temp` |
| 212 | +- **http-uwsgi-temp-path=path** |
| 213 | + |
| 214 | + 定义一个目录,用于存储临时文件和从 uwsgi 服务器接受的数据。安装后可以使用[uwsgi_temp_path](http://nginx.org/en/docs/http/ngx_http_uwsgi_module.html#uwsgi_temp_path) 指令在nginx.conf配置文件中更改。 默认的目录为 `prefix/uwsgi_temp` |
| 215 | +- **http-scgi-temp-path=path** |
| 216 | + |
| 217 | + 定义一个目录,用于存储临时文件和从 SCGI 服务器接受的数据。安装后可以使用[scgi_temp_path](http://nginx.org/en/docs/http/ngx_http_scgi_module.html#scgi_temp_path) 指令在nginx.conf配置文件中更改。 默认的目录为 `prefix/scgi_temp` |
| 218 | +- **without-http** |
| 219 | + |
| 220 | + 禁用构建[HTTP](http://nginx.org/en/docs/http/ngx_http_core_module.html) 模块。 |
| 221 | +- **without-http-cache** |
| 222 | + |
| 223 | + 禁用 HTTP 缓存。 |
| 224 | +- **with-mail**和**with-mail=dynamic** |
| 225 | + |
| 226 | + 启用构建 POP3/IMAP4/SMTP [mail proxy](http://nginx.org/en/docs/mail/ngx_mail_core_module.html) 模块。 |
| 227 | +- **with-mail_ssl_module** |
| 228 | + |
| 229 | + 启用构建[SSL/TLS protocol support](http://nginx.org/en/docs/mail/ngx_mail_ssl_module.html) 模块,将SSL/TLS协议支持添加到邮件代理服务器。默认不构建此模块。需要OpenSSL库来构建和运行此模块。 |
| 230 | +- **without-mail_pop3_module** |
| 231 | + |
| 232 | + 禁用邮件代理服务器中的[POP3](http://nginx.org/en/docs/mail/ngx_mail_pop3_module.html) 协议。 |
| 233 | +- **without-mail_imap_module** |
| 234 | + |
| 235 | + 禁用邮件代理服务器中的[IMAP](http://nginx.org/en/docs/mail/ngx_mail_imap_module.html) 协议。 |
| 236 | +- **without-mail_smtp_module** |
| 237 | + |
| 238 | + 禁用邮件代理服务器中的[SMTP](http://nginx.org/en/docs/mail/ngx_mail_smtp_module.html) 协议。 |
| 239 | +- **with-stream**和**with-stream=dynamic** |
| 240 | + |
| 241 | + 启用构建[流模块](http://nginx.org/en/docs/stream/ngx_stream_core_module.html) 模块以进行通用的 TCP/UDP 代理和负载均衡。该模块默认不构建。 |
| 242 | +- **with-stream_ssl_module** |
| 243 | + |
| 244 | + 启用构建[SSL/TLS protocol support](http://nginx.org/en/docs/stream/ngx_stream_ssl_module.html) 模块。为流模块添加SSL/TLS协议支持。默认不构建此模块。需要OpenSSL库来构建和运行此模块。 |
| 245 | +- **with-stream_realip_module** |
| 246 | + |
| 247 | + 启用构建[ngx_stream_realip_module](http://nginx.org/en/docs/http/ngx_stream_realip_module.html) 模块。该模块将客户端地址更改为 PROXY 协议头中发送的地址。默认不构建此模块。 |
| 248 | +- **with-stream_geoip_module**和**with-stream_geoip_module=dynamic** |
| 249 | + |
| 250 | + 启用构建[ngx_stream_geoip_module](http://nginx.org/en/docs/stream/ngx_stream_geoip_module.html) 模块。该模块根据客户端地址和预编译的[MaxMind](http://www.maxmind.com/) 数据库创建变量。默认不构建。 |
| 251 | +- **with-stream_ssl_preread_module** |
| 252 | + |
| 253 | + 禁用构建[with-http_degradation_modulengx_stream_ssl_preread_module](http://nginx.org/en/docs/stream/ngx_stream_ssl_preread_module.html) 模块。该模块允许从[ClientHello](https://tools.ietf.org/html/rfc5246#section-7.4.1.2) 消息中提取消息而不终止SSL/TLS。 |
| 254 | +- **without-stream_limit_conn_module** |
| 255 | + |
| 256 | + 禁用构建[ngx_stream_limit_conn_module](http://nginx.org/en/docs/stream/ngx_stream_limit_conn_module.html) 模块。该模块限制每个密钥的连接数,例如,来自单个IP地址的连接数。 |
| 257 | +- **without-stream_geo_module** |
| 258 | + |
| 259 | + 禁用构建[ngx_stream_geo_module](http://nginx.org/en/docs/stream/ngx_stream_geo_module.html) 模块。该模块使用取决于客户端IP地址的值创建变量。 |
| 260 | +- **without-stream_map_module** |
| 261 | + |
| 262 | + 禁用构建[ngx_stream_map_module](http://nginx.org/en/docs/stream/ngx_stream_map_module.html) 模块。该模块根据其他变量的值创建值。 |
| 263 | +- **without-stream_split_clients_module** |
| 264 | + |
| 265 | + 禁用构建[ngx_stream_split_clients_module](http://nginx.org/en/docs/stream/ngx_stream_split_clients_module.html) 模块。该模块为 A/B 测试创建变量 |
| 266 | +- **without-stream_return_module** |
| 267 | + |
| 268 | + 禁用构建[ngx_stream_return_module](http://nginx.org/en/docs/stream/ngx_stream_return_module.html) 模块。该模块将一些指定值发送到客户端,然后关闭连接。 |
| 269 | +- **without-stream_upstream_hash_module** |
| 270 | + |
| 271 | + 禁用构建[hash](http://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#hash) 实现散列负载平衡方法的模块。 |
| 272 | +- **without-stream_upstream_least_conn_module** |
| 273 | + |
| 274 | + 禁用构建[least_conn](http://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#least_conn) 实现散列负载平衡方法的模块。 |
| 275 | +- **without-stream_upstream_zone_module** |
| 276 | + |
| 277 | + 禁用构建[zone](http://nginx.org/en/docs/stream/ngx_stream_upstream_module.html#zone) 的模块。该模块可以将上游组的运行时状态存储在共享内存区域中 |
| 278 | +- **with-google_perftools_module** |
| 279 | + |
| 280 | + 禁用构建[ngx_google_perftools_module ](http://nginx.org/en/docs/ngx_google_perftools_module.html) 模块。该模块可以使用 [Google Performance Tools](https://github.com/gperftools/gperftools) 分析nginx工作进程。该模块适用于nginx开发人员,默认情况下不构建。 |
| 281 | +- **with-cpp_test_module** |
| 282 | + |
| 283 | + 启用构建ngx_cpp_test_module模块。 |
| 284 | +- **add-module=path** |
| 285 | + |
| 286 | + 启用外部模块。 |
| 287 | +- **add-dynamic-module=path** |
| 288 | + |
| 289 | + 启用动态模块。 |
| 290 | +- **with-compat** |
| 291 | + |
| 292 | + 实现动态兼容模块。 |
| 293 | +- **with-cc=path** |
| 294 | + |
| 295 | + 设置C编译器的名称。 |
| 296 | +- **with-cpp=path** |
| 297 | + |
| 298 | + 设置C++处理器的名称。 |
| 299 | +- **with-cc-opt=parameters** |
| 300 | + |
| 301 | + 设置将添加到CFLAGS变量的其他参数。在FreeBSD下使用系统PCRE库时,应指定`--with-cc-opt =" - I / usr / local / include"`。如果需要增加 select() 支持的文件数,也可以在此处指定,例如: `- with-cc-opt =" - D FD_SETSIZE = 2048"`。 |
| 302 | +- **with-ld-opt=parameters** |
| 303 | + |
| 304 | + 设置将在链接期间使用的其他参数。在FreeBSD下使用系统PCRE库时,应指定`--with-ld-opt =" - L / usr / local / lib"`。 |
| 305 | +- **with-cpu-opt=cpu** |
| 306 | + |
| 307 | + 指定编译的 CPU ,pentium, pentiumpro, pentium3, pentium4, athlon, opteron, sparc32, sparc64, ppc64。 |
| 308 | +- **without-pcre** |
| 309 | + |
| 310 | + 禁用 PCRE 库的使用。 |
| 311 | +- **with-pcre** |
| 312 | + |
| 313 | + 强制使用 PCRE 库。 |
| 314 | +- **with-pcre=path** |
| 315 | + |
| 316 | + 设置 PCRE 库源的路径。需要从 [PCRE](http://www.pcre.org/) 站点下载分发(版本4.4 - 8.42)并将其解压缩。剩下的工作由nginx的./configure和make完成。该位置指令和 [ngx_http_rewrite_module](http://nginx.org/en/docs/http/ngx_http_rewrite_module.html) 模块中的正则表达式支持需要该库。 |
| 317 | +- **with-pcre-opt=parameters** |
| 318 | + |
| 319 | + 为PCRE设置其他构建选项。 |
| 320 | +- **with-zlib-opt=parameters** |
| 321 | + |
| 322 | + 为zlib设置其他构建选项。 |
| 323 | +- **with-zlib-asm=cpu** |
| 324 | + |
| 325 | + 启用使用针对其中一个指定CPU优化的zlib汇编程序源:pentium,pentiumpro。 |
| 326 | +- **with-libatomic** |
| 327 | + |
| 328 | + 强制libatomic_ops库使用。 |
| 329 | +- **with-libatomic=path** |
| 330 | + |
| 331 | + 设置libatomic_ops库源的路径。 |
| 332 | +- **with-openssl=path** |
| 333 | + |
| 334 | + 设置OpenSSL库源的路径。 |
| 335 | +- **with-openssl-opt=parameters** |
| 336 | + |
| 337 | + 为OpenSSL设置其他构建选项。 |
| 338 | +- **with-debug** |
| 339 | + |
| 340 | + 启用 [调试日志](http://nginx.org/en/docs/debugging_log.html) 。 |
92 | 341 | - **--with-pcre=path** |
93 | 342 |
|
94 | 343 | 设置 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