Nginx parameters:--prefix= point to the installation directory--sbin-path point (Execute) program file (nginx)--conf-path= point to the configuration file (nginx.conf)--error-log-path= Point to the error log directory--pid-path= point to the PID file (nginx.pid)--lock-path= point to the lock file (nginx.lock) (Install file lock, prevent the installation file from being exploited by others, or operate it by mistake.) --user= specifies the non-privileged user--group= when the program runs--builddir= point to the compiled directory--with-rtsig_module enable RTSIG module support (real-time signal)--with-select_ Module Enable Select Module Support (a polling mode that is not recommended for use in high-load environments) Disable:--without-select_module--with-poll_module Enable poll module support (functions are the same as SELECT, Same as the Select attribute, is a polling mode and is not recommended for use in high-load environments--with-file-aio enable file AIO support (an APL file transfer format)--with-ipv6 enable IPv6 support--with-http_ssl_ Module enable ngx_http_ssl_module support (enable HTTPS request, install OpenSSL required)--with-http_realip_module enable Ngx_http_realip_ Module support (This module allows changing the client's IP address value from the request header, which is off by default)--with-http_addition_module enable Ngx_http_addition_module support (as an output filter that supports incomplete buffering , partial response request)--with-http_xslt_module Enable Ngx_http_xslt_module support (Filter transform XML request)--with-http_image_filter_module enable NGX_HTTP_ Image_filter_module Support (a filter that transmits jpeg/gif/png pictures) (the default is not enabled.) GD Library to use)--with-http_geoip_module enable Ngx_http_geoip_module support (this module creates an n that is based on the client IP address that matches the Maxmind GeoIP binary fileGx_http_geoip_module variable)--with-http_sub_module enable Ngx_http_sub_module support (some text in the Nginx response is allowed to be replaced with some other text)--with-http_dav_ Module Enable ngx_http_dav_module support (add Put,delete,mkcol: Create collection, copy and Move methods) is off by default and needs to be compiled to turn on--with-http_flv_module enabled Ngx_ Http_flv_module Support (provides a time-based offset file seeking memory usage)--with-http_gzip_static_module enable NGX_HTTP_GZIP_STATIC_ Module support (online real-time compressed output data stream)--with-http_random_index_module enable Ngx_http_random_index_ Module support (randomly pick a directory index from the directory)--with-http_secure_link_module enable NGX_HTTP_SECURE_LINK_ Module support (required to calculate and check required secure link URLs)--with-http_degradation_module Enable Ngx_http_degradation_ Module support (allows 204 or 444 yards to be returned in case of low memory)--with-http_stub_status_module enable Ngx_http_stub_status_ Module support (get Nginx's working status since last boot)--without-http_charset_module disable Ngx_http_charset_module support (Recode Web page, But only in one Direction-server-to-client, and only one byte of encoding can be re-encoded---without-http_gzip_module disable Ngx_http_gzip_module support (the module with-WITH-HTTP_GZIP_ static_module function)--without-http_ssi_module Disable Ngx_http_ssi_module support (This module provides a filter for processing server include files (SSI) on the input side, Currently the list of supported SSI commands is incomplete)--without-http_userid_module disable Ngx_hTtp_userid_module Support (the module is used to process cookies used to determine client subsequent requests)--without-http_access_module disable Ngx_http_access_ Module support (This module provides a simple host-based access control.) Allow/deny based on IP address)--without-http_auth_basic_module disable NGX_HTTP_AUTH_BASIC_ Module (which is a user name and password that can be used to protect your site or some of its content based on the HTTP Basic authentication method)--without-http_autoindex_module disable Disable ngx_http_autoindex_ Module support (This module is used to automatically generate a list of directories and only make requests when the Ngx_http_index_module module does not find an index file.) --without-http_geo_module Disable Ngx_http_geo_module support (create some variables whose value depends on the IP address of the client)--without-http_map_module disable Ngx_http_map _module Support (Set configuration variables with any key/value pair)--without-http_split_clients_module disable Ngx_http_split_clients_module support, which is used to divide users based on certain conditions. Conditions such as: IP address, header, cookies, etc.)--without-http_referer_module disable disable Ngx_http_referer_module support (this module is used to filter requests, Deny Referer value in header)--without-http_rewrite_module disable Ngx_http_rewrite_module support (this module allows you to change the URI using a regular expression and to turn to and select the configuration based on the variable.) If this option is set at the server level, they will take effect before location. If there are further rewrite rules at location, the rules of the location section will still be executed. If this URI rewrite is caused by a rule in the Location section, then the location section will be executed again as the new URI. This loop executes 10 times, and then Nginx returns a 500 error. )--without-http_proxy_module Disable Ngx_http_pRoxy_module Support (for proxy server)--without-http_fastcgi_module disable Ngx_http_fastcgi_module support (This module allows Nginx to interact with the fastcgi process, and pass parameters to control the fastcgi process work. ) fastcgi a resident public gateway interface. --without-http_uwsgi_module Disable Ngx_http_uwsgi_module Support (the module is used for medical UWSGI protocol, UWSGI Server related)--without-http_scgi_module disable NGX _http_scgi_module Support (the module is used to enable SCGI protocol support, SCGI protocol is an alternative to the CGI protocol.) It is an application-to-HTTP service interface standard. It's a bit like fastcgi but his design is easier to implement. --without-http_memcached_module disables Ngx_http_memcached_module support (the module is used to provide simple caching to improve system efficiency)-without-http_limit_zone_ Module disables Ngx_http_limit_zone_module support (the module can control the number of concurrent connections for a session for a condition)--without-http_limit_req_module disable Ngx_http_limit_ Req_module Support (This module allows you to limit the number of requests for an address with a given session or a specific event)--without-http_empty_gif_module disable ngx_http_empty_gif_ Module support (the module resides in memory with a 1*1 transparent GIF image that can be called very quickly)--without-http_browser_module disabled ngx_http_browser_ Module support, which is used to create a value that relies on the request header. If the browser is modern, $modern_browser equals the value assigned by the modern_browser_value instruction, or $ancient_browser equals Ancient_browser_ if the browser is old. The value assigned by the values directive, or if the browser is any version in MSIE, $msie equals 1)--without-http_upstream_ip_hash_module disable ngx_http_upstream_ip_hash_module Support (This module is used for simple load balancing)--with-http_perl_module enable Ngx_http_perl_ Module support (This module allows Nginx to set the Perl module path directly using Perl or calling Perl via SSI)--with-perl_modules_path=--with-perl= Set the Perl library file path--http-log-path= set the access log path--http-client-body-temp-path= set the HTTP client request temporary file path--http-proxy-temp-path= Set HTTP Proxy temp file path--http-fastcgi-temp-path= set http fastcgi temp file path--http-uwsgi-temp-path= set http Uwsgi temporary file path--http-scgi-temp-path= set HTTP scgi temporary file path-without-http disable HTTP Server feature--without-http-cache disable HTTP The cache feature--with-mail enable POP3/IMAP4/SMTP Proxy module support--with-mail_ssl_module enable ngx_mail_ssl_module support--without-mail_pop3_ Module disables the POP3 protocol (POP3, the 3rd version of the Post Office Protocol, which is a protocol that specifies how personal computers can connect to mail servers on the Internet to send and receive mail. is the first offline protocol standard for Internet e-mail, the POP3 protocol allows users to store messages from the server on a local host while deleting or saving messages on the mail server based on the client's actions. The POP3 protocol is a member of the TCP/IP protocol family that is primarily used to support e-mail that is managed remotely on the server using a client--without-mail_imap_module disable the IMAP protocol, a message acquisition protocol. Its main function is that the mail client can obtain the message from the mail server through this protocol, download the Mail and so on. The IMAP protocol runs on top of the TCP/IP protocol, using a port of 143. The main difference between it and the POP3 protocol is that the user can not download all the messages, and can directly manipulate the messages on the server through the client. )--without-mail_smtp_module disables the SMTP protocol (SMTP is the Simple Mail Transfer Protocol, which isA set of rules used to send messages from the source address to the destination, which controls the way the letters are relayed. The SMTP protocol belongs to the TCP/IP protocol family, which helps each computer find its next destination when sending or relaying letters. --with-google_perftools_module Enable Ngx_google_perftools_module support (Tune trial, profiler performance bottleneck)--with-cpp_test_module enable Ngx_cpp_ Test_module supports--add-module= enabling external module support--with-cc= pointing to the C compiler path--with-cpp= pointing to the C preprocessing path--with-cc-opt= setting C compiler parameters (Pcre library, which needs to be specified – With-cc-opt= "-i/usr/local/include", if you need to increase the number of file descriptors by using the Select () function, you can specify it by –with-cc-opt= "-D fd_setsize=2048". )--with-ld-opt= Set the connection file parameters. (Pcre library, you need to specify –with-ld-opt= "-l/usr/local/lib".) --with-cpu-opt= Specifies the compiled CPU, the available values are: Pentium, Pentiumpro, Pentium3, Pentium4, Athlon, Opteron, AMD64, Sparc32, SPARC64, PPC64 --without-pcre Disable Pcre library--with-pcre enable Pcre library--with-pcre= point to Pcre Library file directory--with-pcre-opt= set additional parameters for the Pcre library at compile time--with-md5= Point to the MD5 library file directory (message digest algorithm version fifth, which provides integrity protection for messages)--with-md5-opt= set additional parameters for MD5 library at compile time--WITH-MD5-ASM use MD5 assembler source--with-sha1= Point to the SHA1 Library directory (digital Signature algorithm, primarily for digital signatures)--with-sha1-opt= set additional parameters for the SHA1 library at compile time--with-sha1-asm use SHA1 assembler source--with-zlib= Point to the Zlib Library directory--with-zlib-opt= set additional parameters for zlib at compile time--with-zlib-asm= optimize for the specified CPU using zlib assembler source, CPU type Pentium, PentiUmpro--with-libatomic provides a schema for the implementation of an update operation for atomic memory--with-libatomic= point to the Libatomic_ops installation directory--with-openssl= Point to the OpenSSL installation directory--with-openssl-opt set additional parameters for OpenSSL at compile time--with-debug enable debug logging turn from: Http://blog.sina.com.cn/s/blog_ 68c25adf01014037.html
Nginx Compilation parameters in detail (operations must SEE)