登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

永福的技术博客

Linux运维

 
 
 
 
 

日志

 
 

【永福原创】nginx官方编译选项 翻译  

2011-07-18 21:56:00|  分类: 软件编程 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
Compile-time options
编译时选项
configure determines the features of system and, in particular, the methods, which nginx can use for handling connections. Finally it creates the Makefile.
编译配置决定了系统的特征,尤其在nginx处理连接的方法。最后他将创建makefile。
configure supports the following options:
编译配置支持以下选项:
--prefix=<path> - The path relative to which all other Nginx paths will resolve. If not specified, defaults to /usr/local/nginx.
--prefix=<path>  Nginx的安装目录,默认安装在/usr/local/nginx

--sbin-path=<path> - The path to the nginx executable. Only used for installation. If not specified defaults to <prefix>/sbin/nginx.
--sbin-path=<path> nginx可执行命令的路径,仅在安装是指定。如果未指定,默认安装在<prefix>/sbin/nginx


--conf-path=<path> - The default location of nginx.conf if no -c parameter is provided. If not provided, defaults to <prefix>/conf/nginx.conf.
--conf-path=<path>  在启动是没有-c参数时,nginx的默认启动配置nginx.conf文件。如果未指定,默认路径<prefix>/conf/nginx.conf

--pid-path=<path> - The path to nginx.pid, if not set via the "pid" directive in nginx.conf. If not provided, defaults to <prefix>/logs/nginx.pid.
--pid-path=<path>  指定nginx.pid的路径,若未指定,默认路径<prefix>/logs/nginx.pid

--lock-path=<path> - The path to the nginx.lock file. If not provided, defaults to <prefix>/logs/nginx.lock.
--lock-path=<path>  指定nginx.lock文件的路径,若未指定,默认路径<prefix>/logs/nginx.lock.

--error-log-path=<path> - The location of the error log if not set via the "error_log" in nginx.conf. If not set, defaults to <prefix>/logs/error.log.
--error-log-path=<path>  指定error_log的路径,若未指定,默认<prefix>/logs/error.log

--http-log-path=<path> - The location of the access log if not set via the "access_log" directive in nginx.conf. If not set, defaults to <prefix>/logs/access.log.
--http-log-path=<path>  指定access_log的路径,若未指定,默认<prefix>/logs/access.log

--user=<user> - The default user that nginx will run as if not set in nginx.conf via the "user" directive. If not set, defaults to "nobody".
--user=<user> nginx的运行用户,若未指定,默认为nobody。(也可在nginx.conf中指定)

--group=<group> - The default group that nginx will run under if not set via the "user" directive in nginx.conf. If not set defaults to "nobody".
--user=<user> nginx的运行属组,若未指定,默认为nobody。(也可在nginx.conf中指定)

--builddir=DIR - Set the build directory
--builddir=DIR 设置build目录

--with-rtsig_module - Enable rtsig module
--with-rtsig_module 开启rtsig模块

--with-select_module --without-select_module - Whether or not to enable the select module. This module is enabled by default if a more suitable method such as kqueue, epoll, rtsig or /dev/poll is not discovered by configure.
--with-select_module --without-select_module 是否开启select模块。若没有更适合的kqueue,epoll,rtsig或者/dev/poll 方法在配置中指定,将默认开启。

--with-poll_module --without-poll_module - Whether or not to enable the poll module. This module is enabled by default if a more suitable method such as kqueue, epoll, rtsig or /dev/poll is not discovered by configure.
--with-poll_module --without-poll_module 是否开启poll模块。若没有更适合的kqueue, epoll, rtsig or /dev/poll 方法在配置中指定,将默认开启。

--with-http_ssl_module - Enable ngx_http_ssl_module. Enables SSL support and the ability to handle HTTPS requests. Requires OpenSSL. On Debian, this is libssl-dev.
--with-http_ssl_module 开启ngx_http_ssl_module。开启SSL支持,用来处理HTTPS请求。依赖OpenSSL。在Debian系统上,需要libssl-dev。

--with-http_realip_module - Enable ngx_http_realip_module
--with-http_realip_module  开启ngx_http_realip_module

--with-http_addition_module - Enable ngx_http_addition_module
--with-http_addition_module 开启ngx_http_addition_module

--with-http_sub_module - Enable ngx_http_sub_module
--with-http_sub_module 开启ngx_http_sub_module

--with-http_dav_module - Enable ngx_http_dav_module
--with-http_dav_module 开启ngx_http_dav_module

--with-http_flv_module - Enable ngx_http_flv_module
--with-http_flv_module 开启ngx_http_flv_module

--with-http_stub_status_module - Enable the "server status" page
--with-http_stub_status_module 启动服务器"server status"页,检测服务器状态

--without-http_charset_module - Disable ngx_http_charset_module
--without-http_charset_module 关闭ngx_http_charset_module

--without-http_gzip_module - Disable ngx_http_gzip_module. Requires zlib if enabled.
--without-http_gzip_module 关闭ngx_http_gzip_module. 要求zlib开启.

--without-http_ssi_module - Disable ngx_http_ssi_module
--without-http_ssi_module 关闭ngx_http_ssi_module

--without-http_userid_module - Disable ngx_http_userid_module
--without-http_userid_module 关闭ngx_http_userid_module

--without-http_access_module - Disable ngx_http_access_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. 要求 PCRE 开启.

--without-http_proxy_module - Disable ngx_http_proxy_module
--without-http_proxy_module 关闭ngx_http_proxy_module

--without-http_fastcgi_module - Disable ngx_http_fastcgi_module
--without-http_fastcgi_module 关闭ngx_http_fastcgi_module

--without-http_memcached_module - Disable ngx_http_memcached_module
--without-http_memcached_module 关闭ngx_http_memcached_module

--without-http_limit_zone_module - Disable ngx_http_limit_zone_module
--without-http_limit_zone_module 关闭ngx_http_limit_zone_module

--without-http_empty_gif_module - Disable ngx_http_empty_gif_module
--without-http_empty_gif_module 关闭ngx_http_empty_gif_module

--without-http_browser_module - Disable ngx_http_browser_module
--without-http_browser_module 关闭ngx_http_browser_module

--without-http_upstream_ip_hash_module - Disable ngx_http_upstream_ip_hash_module
--without-http_upstream_ip_hash_module 关闭ngx_http_upstream_ip_hash_module

--with-http_perl_module - Enable ngx_http_perl_module
--with-http_perl_module 关闭ngx_http_perl_module

--with-perl_modules_path=PATH - Set path to the perl modules
--with-perl_modules_path=PATH 设置perl modules的路径

--with-perl=PATH - Set path to the perl binary
--with-perl=PATH 设置perl的运行目录

--http-client-body-temp-path=PATH - Set path to the http client request body temporary files. If not set, defaults to <prefix>/client_body_temp
--http-client-body-temp-path=PATH 设置http访问正文信息的临时文件路径。如果没有设置PATH,默认<prefix>/client_body_temp

--http-proxy-temp-path=PATH - Set path to the http proxy temporary files. If not set, defaults to <prefix>/proxy_temp
--http-proxy-temp-path=PATH 设置代理的临时文件路径。如果没有设置PATH,默认<prefix>/proxy_temp

--http-fastcgi-temp-path=PATH - Set path to the http fastcgi temporary files. If not set, defaults to <prefix>/fastcgi_temp
--http-fastcgi-temp-path=PATH 设置http fastcgi 临时文件的路径。如果没有设置PATH,默认<prefix>/fastcgi_temp

--without-http 关闭HTTP server功能。

--with-mail 启用IMAP4/POP3/SMTP proxy module

--with-mail_ssl_module 启用ngx_mail_ssl_module

--with-cc=PATH - Set path to C compiler
--with-cc=PATH 设置c编译器的路径

--with-cpp=PATH - Set path to C preprocessor
--with-cpp=PATH 设置c处理器的路径

--with-cc-opt=OPTIONS - Additional parameters which will be added to the variable CFLAGS. With the use of the system library PCRE in FreeBSD, it is necessary to indicate --with-cc-opt="-I /usr/local/include". If we are using select() and it is necessary to increase the number of file descriptors, then this also can be assigned here: --with-cc-opt="-D FD_SETSIZE=2048".
--with-cc-opt=OPTIONS CFLAGS新增的参数. 在FreeBSD下使用系统库PCRE, 有必要指定--with-cc-opt="-I /usr/local/include". 如果使用select()功能,有必要增加文件描述符的数据量, 可以这样设置: --with-cc-opt="-D FD_SETSIZE=2048".

--with-ld-opt=OPTIONS - Additional parameters passed to the linker. With the use of the system library PCRE in FreeBSD, it is necessary to indicate --with-ld-opt="-L /usr/local/lib".
--with-ld-opt=OPTIONS 添加传递给linker的参数. 在使用freebsd系统库PCRE时,有必要指定--with-ld-opt="-L /usr/local/lib".

--with-cpu-opt=CPU - Build for specified CPU, the valid values: pentium, pentiumpro, pentium3, pentium4, athlon, opteron, amd64, sparc32, sparc64, ppc64
--with-cpu-opt=CPU 为特定的CPU构建包,有效值有: pentium, pentiumpro, pentium3, pentium4, athlon, opteron, amd64, sparc32, sparc64, ppc64

--without-pcre - Disable PCRE library usage. Also disables HTTP rewrite module. PCRE is also required for regular expressions in "location" directive.
--without-pcre 关闭PCRE库. 同时会关闭rewrite. PCRE在"location"段中的正则表达式中需要用到。

--with-pcre=DIR - Set path to PCRE library sources.
--with-pcre=DIR 指定PCRE库的源文件路径.

--with-pcre-opt=OPTIONS - Set additional options for PCRE building.
--with-pcre-opt=OPTIONS 设置PCRE更多选项.

--with-md5=DIR - Set path to md5 library sources.
--with-md5=DIR 指定md5库的源文件的路径.

--with-md5-opt=OPTIONS - Set additional options for md5 building.
--with-md5-opt=OPTIONS 设置md5的更多选项.

--with-md5-asm - Use md5 assembler sources.
--with-md5-asm 使用md5的汇编源.

--with-sha1=DIR - Set path to sha1 library sources.
--with-sha1=DIR 指定sha1库的源文件的路径.

--with-sha1-opt=OPTIONS - Set additional options for sha1 building.
--with-sha1-opt=OPTIONS 设置sha1的更多选项.

--with-sha1-asm - Use sha1 assembler sources.
--with-sha1-asm 使用sha1的汇编源.

--with-zlib=DIR - Set path to zlib library sources.
--with-zlib=DIR 指定zlib库的源文件路径.

--with-zlib-opt=OPTIONS - Set additional options for zlib building.
--with-zlib-opt=OPTIONS 设置zlib的更多选项.

--with-zlib-asm=CPU - Use zlib assembler sources optimized for specified CPU, valid values are: pentium, pentiumpro
--with-zlib-asm=CPU 使用为特定CPU优化的汇编源, 有效值: pentium, pentiumpro

--with-openssl=DIR - Set path to OpenSSL library sources
--with-openssl=DIR 指定OpenSSL的库的源文件路径

--with-openssl-opt=OPTIONS - Set additional options for OpenSSL building
--with-openssl-opt=OPTIONS 设置OpenSSL的更多选项。

--with-debug - Enable debug logging
--with-debug 开启debug日志

--add-module=PATH - Add in a third-party module found in directory PATH
--add-module=PATH 添加在PATH中指定的第三方模块

Options may vary slightly between versions. Always check ./configure --help for the current list.
这些选项在不同的版本中有些许的不同,使用./configure --help 命令查看当前版本支持的选项。
  评论这张
 
阅读(1105)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018