nginx编译参数详解2

上一节我们讲了一些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 文件传输格式)
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值