上一节我们讲了一些nginx编译的部分参数,这里我们继续进行相关参数的讲解。就不在举例实际的内容,我们按照所存在的编译参数进行讲解。
1.用户及目录
--user= 指定程序运行时的非特权用户(若不使用root用户时进行指定)
--group= 指定程序运行时的非特权用户组(若不使用root用户时进行指定)
--builddir= 指向编译目录
2.http相关
--with-http_ssl_module 启用 ngx_http_ssl_module 支持(使支持 https 请求,需已安装 openssl模块)
--with-http_addition_module 启用 ngx_http_addition_module 支持(作为一个输出过滤器,支持不完全缓冲,是其支持分部分响应请求)
--with-http_secure_link_module 启用 ngx_http_secure_link_module 支持(检查网站要求所需的安全链接网址)
--with-http_degradation_module 启用 ngx_http_degradation_module 支持(允许在内存不足的情况下返回指定的代码(204 或 444 ),方便调试)
--with-http_xslt_module 启用 ngx_http_xslt_module 支持(过滤支持转换 XML 请求)
--with-http_sub_module 启用 ngx_http_sub_module 支持(允许用一些其他文本替换 nginx 响应中的一些文本)
--with-http_flv_module 启用 ngx_http_flv_module 支持(提供寻求内存使用基于时间的偏移量文件)
--with-http_gzip_static_module 启用 ngx_http_gzip_static_module 支持(在线实时压缩数据流,可把大文件压缩成小文件输出)
--with-http_random_index_module 启用 ngx_http_random_index_module 支持(从目录中随机挑选一个目录索引)
--without-http_gzip_module 禁用 ngx_http_gzip_module 支持(该模块同-withhttp_gzip_static_module 功能一样)
--without-http_ssi_module 禁用 ngx_http_ssi_module 支持(该模块提供了一个在输入端处理处理服务器包含文件( SSI)的过滤器)
--without-http_userid_module 禁用 ngx_http_userid_module 支持(该模块用来处理用来确定客户端后续请求的 cookies内容)
3.启用、禁用模块支持
--with-select_module 启用 select 模块支持
--withoutselect_module 禁用select 模块支持
--with-rtsig_module 启用 rtsig 模块支持
--with-ipv6 启用 ipv6 支持(目前IPV6已经是趋势了)
--with-poll_module 启用 poll 模块支持(功能、特性与 select 相同,为一种轮询模式,不推荐在高载环境下使用)
--with-file-aio 启用 file aio 支持(一种 APL 文件传输格式)