Nginx compilation parameters Daquan Configure parameters Chinese detailed _nginx

Source: Internet
Author: User
Tags md5 openssl openssl library sha1
Nginx Compilation Parameters:
./configure--help
--help Display this prompt information
--prefix=path set up the installation directory
--sbin-path=path Set Program file directory
--conf-path=path Set configuration file (nginx.conf) directory
--error-log-path=path Set error log directory
--pid-path=path set PID file (nginx.pid) directory
--lock-path=path set Lock file (nginx.lock) directory
--user=user User Environment for Setup program (WWW)
--group=group Setting program running Group Environment (WWW)
--builddir=dir set up program compilation directory
--with-rtsig_module Allow Rtsig module
--with-select_module allows select modules (a polling mode that is not recommended for high load environments)
--without-select_module does not use the Select module
--with-poll_module allows poll modules (a polling mode that is not recommended for high load environments)
--without-poll_module does not use poll module
--with-http_ssl_module allow Ngx_http_ssl_module module (Apache correspondence: MOD_SSL)
--with-http_realip_module Allow Ngx_http_realip_module module (MOD_RPAF)
--with-http_addition_module Allow Ngx_http_addition_module module (mod_layout)
--with-http_xslt_module Allow Ngx_http_xslt_module module
--with-http_sub_module Allow Ngx_http_sub_module module
--with-http_dav_module Allow Ngx_http_dav_module module (MOD_DAV)
--with-http_flv_module Allow Ngx_http_flv_module module (MOD_FLVX)
--with-http_gzip_static_module Allow Ngx_http_gzip_static_module module (mod_dflate)
--with-http_random_index_module Allow Ngx_http_random_index_module module (mod_autoindex)
--with-http_stub_status_module Allow Ngx_http_stub_status_module module (mod_status)
--without-http_charset_module does not use Ngx_http_charset_module module
--without-http_gzip_module does not use Ngx_http_gzip_module module
--without-http_ssi_module does not use Ngx_http_ssi_module module
--without-http_userid_module does not use Ngx_http_userid_module module
--without-http_access_module does not use Ngx_http_access_module module
--without-http_auth_basic_module does not use Ngx_http_auth_basic_module module
--without-http_autoindex_module does not use Ngx_http_autoindex_module module
--without-http_geo_module does not use Ngx_http_geo_module module
--without-http_map_module does not use Ngx_http_map_module module
--without-http_referer_module does not use Ngx_http_referer_module module
--without-http_rewrite_module does not use Ngx_http_rewrite_module module
--without-http_proxy_module does not use Ngx_http_proxy_module module
--without-http_fastcgi_module does not use Ngx_http_fastcgi_module module
--without-http_memcached_module does not use Ngx_http_memcached_module module
--without-http_limit_zone_module does not use Ngx_http_limit_zone_module module
--without-http_empty_gif_module does not use Ngx_http_empty_gif_module module
--without-http_browser_module does not use Ngx_http_browser_module module
--without-http_upstream_ip_hash_module does not use Ngx_http_upstream_ip_hash_module module
--with-http_perl_module Allow Ngx_http_perl_module module
--with-perl_modules_path=path Set Perl module path
--with-perl=path Set the Perl library file path
--http-log-path=path set access log file path
--http-client-body-temp-path=path Set client Request temp file path
--http-proxy-temp-path=path Set HTTP Proxy temp file path
--http-fastcgi-temp-path=path set HTTP fastcgi temporary file path
--without-http does not use HTTP Server features
--with-mail Allow POP3/IMAP4/SMTP Agent module
--with-mail_ssl_module Allow Ngx_mail_ssl_module module
--without-mail_pop3_module does not allow Ngx_mail_pop3_module modules
--without-mail_imap_module does not allow Ngx_mail_imap_module modules
--without-mail_smtp_module does not allow Ngx_mail_smtp_module modules
--with-google_perftools_module allow Ngx_google_perftools_module modules (for debugging)
--with-cpp_test_module Allow Ngx_cpp_test_module module
--add-module=path allows the use of external modules, as well as paths
--with-cc=path set C compiler path
--with-cpp=path Set C preprocessing path
--with-cc-opt=options set C compiler parameters
--with-ld-opt=options Set Connection file parameters
--WITH-CPU-OPT=CPU for the specified CPU optimization, optional parameters are:
Pentium, Pentiumpro, PENTIUM3, PENTIUM4,
Athlon, Opteron, Sparc32, SPARC64, PPC64
--without-pcre does not use Pcre library files
--with-pcre=dir Set Pcre Library path
--with-pcre-opt=options Set Pcre Run parameters
--with-md5=dir set MD5 library file path
--with-md5-opt=options set MD5 run parameters
--with-md5-asm use MD5 source file compilation
--with-sha1=dir Set SHA1 library file path
--with-sha1-opt=options Set SHA1 Run parameters
--with-sha1-asm use SHA1 source file compilation
--with-zlib=dir set zlib library file path
--with-zlib-opt=options set zlib Run parameters
--WITH-ZLIB-ASM=CPU enables zlib to optimize for a particular CPU, optional parameters:
Pentium, Pentiumpro
--with-openssl=dir set OpenSSL library file path
--with-openssl-opt=options set OpenSSL run parameters
--with-debug Allow debug Log
Nginx compile time is not the more the more the better, should be as little as possible to compile modules, do not have the best not to join.
Compiled Nginx can view compile-time parameters through/USR/LOCAL/NGINX/SBIN/NGINX-V (specific path is more practical)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.