Nginx编译参数大全 configure参数中文详解
./configure --help
--help 显示本提示信息
--prefix=PATH 设定安装目录
--sbin-path=PATH 设定程序文件目录
--conf-path=PATH 设定配置文件(nginx.conf)目录
--error-log-path=PATH 设定错误日志目录
--pid-path=PATH 设定pid文件(nginx.pid)目录
--lock-path=PATH 设定lock文件(nginx.lock)目录
--user=USER 设定程序运行的用户环境(www)
--group=GROUP 设定程序运行的组环境(www)
--builddir=DIR 设定程序编译目录
--with-rtsig_module 允许rtsig模块
--with-select_module 允许select模块(一种轮询模式,不推荐用在高载环境)
--without-select_module 不使用select模块
--with-poll_module 允许poll模块(一种轮询模式,不推荐用在高载环境)
--without-poll_module 不使用poll模块
--with-http_ssl_module 允许ngx_http_ssl_module模块(Apache对应:mod_ssl)
--with-http_realip_module 允许ngx_http_realip_module模块(mod_rpaf)
--with-http_addition_module 允许ngx_http_addition_module模块(mod_layout)
--with-http_xslt_module 允许ngx_http_xslt_module模块
--with-http_sub_module 允许ngx_http_sub_module模块
--with-http_dav_module 允许ngx_http_dav_module模块(mod_dav)
--with-http_flv_module 允许ngx_http_flv_module模块(mod_flvx)
--with-http_gzip_static_module 允许ngx_http_gzip_static_module模块(mod_dflate)
--with-http_random_index_module 允许ngx_http_random_index_module模块(mod_autoindex)
--with-http_stub_status_module 允许ngx_http_stub_status_module模块(mod_status)
--without-http_charset_module 不使用ngx_http_charset_module模块
--without-http_gzip_module 不使用ngx_http_gzip_module模块
--without-http_ssi_module 不使用ngx_http_ssi_module模块
--without-http_userid_module 不使用ngx_http_userid_module模块
--without-http_access_module 不使用ngx_http_access_module模块
--without-http_auth_basic_module 不使用ngx_http_auth_basic_module模块
--without-http_autoindex_module 不使用ngx_http_autoindex_module模块
--without-http_geo_module 不使用ngx_http_geo_module模块
--without-http_map_module 不使用ngx_http_map_module模块
--without-http_referer_module 不使用ngx_http_referer_module模块
--without-http_rewrite_module 不使用ngx_http_rewrite_module模块
--without-http_proxy_module 不使用ngx_http_proxy_module模块
--without-http_fastcgi_module 不使用ngx_http_fastcgi_module模块
--without-http_memcached_module 不使用ngx_http_memcached_module模块
--without-http_limit_zone_module 不使用ngx_http_limit_zone_module模块
--without-http_empty_gif_module 不使用ngx_http_empty_gif_module模块
--without-http_browser_module 不使用ngx_http_browser_module模块
--without-http_upstream_ip_hash_module 不使用ngx_http_upstream_ip_hash_module模块
--with-http_perl_module 允许ngx_http_perl_module模块
--with-perl_modules_path=PATH 设置perl模块路径
--with-perl=PATH 设置perl库文件路径
--http-log-path=PATH 设置access log文件路径
--http-client-body-temp-path=PATH 设置客户端请求临时文件路径
--http-proxy-temp-path=PATH 设置http proxy临时文件路径
--http-fastcgi-temp-path=PATH 设置http fastcgi临时文件路径
--without-http 不使用HTTP server功能
--with-mail 允许POP3/IMAP4/SMTP代理模块
--with-mail_ssl_module 允许ngx_mail_ssl_module模块
--without-mail_pop3_module 不允许ngx_mail_pop3_module模块
--without-mail_imap_module 不允许ngx_mail_imap_module模块
--without-mail_smtp_module 不允许ngx_mail_smtp_module模块
--with-google_perftools_module 允许ngx_google_perftools_module模块(调试用)
--with-cpp_test_module 允许ngx_cpp_test_module模块
--add-module=PATH 允许使用外部模块,以及路径
--with-cc=PATH 设置C编译器路径
--with-cpp=PATH 设置C预处理路径
--with-cc-opt=OPTIONS 设置C编译器参数
--with-ld-opt=OPTIONS 设置连接文件参数
--with-cpu-opt=CPU 为指定CPU优化,可选参数有:
pentium, pentiumpro, pentium3, pentium4,
athlon, opteron, sparc32, sparc64, ppc64
--without-pcre 不使用pcre库文件
--with-pcre=DIR 设定PCRE库路径
--with-pcre-opt=OPTIONS 设置PCRE运行参数
--with-md5=DIR 设定md5库文件路径
--with-md5-opt=OPTIONS 设置md5运行参数
--with-md5-asm 使用md5源文件编译
--with-sha1=DIR 设定sha1库文件路径
--with-sha1-opt=OPTIONS 设置sha1运行参数
--with-sha1-asm 使用sha1源文件编译
--with-zlib=DIR 设定zlib库文件路径
--with-zlib-opt=OPTIONS 设置zlib运行参数
--with-zlib-asm=CPU 使zlib对特定的CPU进行优化,可选参数:
pentium, pentiumpro
--with-openssl=DIR 设定OpenSSL库文件路径
--with-openssl-opt=OPTIONS 设置OpenSSL运行参数
--with-debug 允许调试日志
nginx编译时不是功能加的越多越好,应该尽可能少编译模块,不用的最好不要加入。
编译好的nginx可通过 /usr/local/nginx/sbin/nginx -V 查看编译时的参数(具体路径更具实际情况而定)
Nginx编译参数大全 configure参数中文详解的更多相关文章
- [转]RSYNC 参数中文详解
FROM : http://www.qiansw.com/rsync-cn.html rsync是一款好用的*nux文件同步工具.下面是其参数的中文解释. Rsync 参数选项说明 -v, --ver ...
- nginx配置文件中的location中文详解
location 语法:location [=|~|~*|^~] /uri/ { … }默认:否 上下文:server 这个指令随URL不同而接受不同的结构.你可以配置使用常规字符串和正则表达式.如果 ...
- uploadify3.1 参数 中文详解
langFile: 'http://www.static-xxx.nu/uploader/uploadifyLang_en.js',//语言包的路径,能设置所有的提示文字 swf: 'http://w ...
- (转)x264参数中文详解(X264 Settings)
0 解释x264命令可选项的用途和使用方法.同执行 x264 --fullhelp 显示顺序.本文主要翻译:mewiki.project357.com/wiki/X264_Settings,同时参考d ...
- Nginx中文详解、配置部署及高并发优化
一.Nginx常用命令: 1. 启动 Nginx /usr/local/nginx/sbin/nginxpoechant@ubuntu:sudo ./sbin/nginx2. 停 ...
- Nginx配置文件nginx.conf中文详解(转)
######Nginx配置文件nginx.conf中文详解##### #定义Nginx运行的用户和用户组 user www www; #nginx进程数,建议设置为等于CPU总核心数. worker_ ...
- Nginx配置文件nginx.conf中文详解【转】
PS:Nginx使用有两三年了,现在经常碰到有新用户问一些很基本的问题,我也没时间一一回答,今天下午花了点时间,结合自己的使用经验,把Nginx的主要配置参数说明分享一下,也参考了一些网络的内容,这篇 ...
- Nginx配置文件中文详解
######Nginx配置文件nginx.conf中文详解##### #定义Nginx运行的用户和用户组 user www www; #nginx进程数,建议设置为等于CPU总核心数. worker_ ...
- Nginx安全相关配置和nginx.conf中文详解
一.centos下redis安全相关 1.背景 在使用云服务器时,如果我们的redis关闭了protected-mode模式,被病毒攻击的可能会大大增加,因此我们使用redis时候,最好更改默认端口, ...
随机推荐
- 标准库中的-stack
#include <sequence_concepts.h> __STL_BEGIN_NAMESPACE // Forward declarations of operators == a ...
- zookeeper命令行(zkCli.sh&zkServer.sh)使用及四字命令
zookeeper提供了很多方便的功能,方便我们查看服务器的状态,增加,修改,删除数据(入口是zkServer.sh和zkCli.sh). 还提供了一系列四字命令,方便我们跟服务器进行各种交互,来确认 ...
- springboot系列之-log
配置文件以application.yml为例说明: Spring Boot默认的日志组件为Logback. 一. 日志配置参数: logging: file: #日志文件,绝对路径或相对路径 path ...
- Linux下手动获取当前调用栈
被问到如何手动获取当前的调用栈,之前碰到过一时没记起来,现在回头整理一下. 其原理是:使用backtrace()从栈中获取当前调用各层函数调用的返回地址,backtrace_symbols()将对应地 ...
- python 杨辉三角
前提:端点的数为1. 每个数等于它上方两数之和. 每行数字左右对称,由1开始逐渐变大. 第n行的数字有n项. 第n行数字和为2n-1. 第n行的m个数可表示为 C(n-1,m-1),即为从n-1个不同 ...
- UVa 10562看图写树(二叉树遍历)
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem& ...
- 在Bootstrap中 强调相关的类
.text-muted:提示,使用浅灰色(#999) .text-primary:主要,使用蓝色(#428bca) .text-success:成功,使用浅绿色(#3c763d) .text-info ...
- C++实现不能被继承的类——终结类 分类: C/C++ 2015-04-06 14:48 64人阅读 评论(0) 收藏
1. 问题 C++如何实现不能被继承的类,即终结类.Java中有final关键字修饰,C#中有sealed关键字修饰,而C++目前还没有类似的关键字来修饰类实现终结类,需编程人员手动实现. ...
- 获得图片颜色---摘自php手册
Example #1 imagecolorsforindex() 例子 ;$color_index = imagecolorat($im, $start_x, $start_y); // 使其可读$c ...
- JUQERY 获取同名称的所有CHECKBOX ,获取已经选择的,并且jquery进行勾选!
var @(Perfix)_CheckArray=[]; @(Perfix)_CheckArray.length=0; var checkedItems = $('input[name="@ ...