Nginx 编译参数详解

编译参数因版本而异,不过基本都是大同小异,这里以 2016-10-18 发布的 nginx-1.10.2 为例,详解Nginx所有编译参数!

先通过 –help 看看都有哪些参数以及官方的解释:

[root@TENCENT64_site /usr/local/tools/nginx-1.10.2]#./configure --help

–help print this message
–prefix=PATH set installation prefix
–sbin-path=PATH set nginx binary pathname
–modules-path=PATH set modules path
–conf-path=PATH set nginx.conf pathname
–error-log-path=PATH set error log pathname
–pid-path=PATH set nginx.pid pathname
–lock-path=PATH set nginx.lock pathname
……
……

[root@TENCENT64_site /usr/local/tools/nginx-1.10.2]# ./configure --help | grep '\-\-' | wc -l
121

121个参数,囧~~,怎么辣么多?解释还辣么简单?还特么都是英文!
不废话了,诚意都在下面!!!
[table=98%,White]

—help 6666 —prefix=PATH 6666 —sbin-path=PATH 6666 —modules-path=PATH 6666 —conf-path=PATH 6666 —error-log-path=PATH 6666 —pid-path=PATH 6666 —lock-path=PATH 6666 —user=USER 6666 —group=GROUP 6666 —build=NAME 6666 —builddir=DIR 6666 —with-select_module 6666 —without-select_module 6666 —with-poll_module 6666 —without-poll_module 6666 —with-threads 6666 —with-file-aio 6666 —with-ipv6 6666 —with-http_ssl_module 6666 —with-http_v2_module 6666 —with-http_realip_module 6666 —with-http_addition_module 6666 —with-http_xslt_module 6666 —with-http_xslt_module=dynamic 6666 —with-http_image_filter_module 6666 —with-http_image_filter_module=dynamic 6666 —with-http_geoip_module 6666 —with-http_geoip_module=dynamic 6666 —with-http_sub_module 6666 —with-http_dav_module 6666 —with-http_flv_module 6666 —with-http_mp4_module 6666 —with-http_gunzip_module 6666 —with-http_gzip_static_module 6666 —with-http_auth_request_module 6666 —with-http_random_index_module 6666 —with-http_secure_link_module 6666 —with-http_degradation_module 6666 —with-http_slice_module 6666 —with-http_stub_status_module 6666 —without-http_charset_module 6666 —without-http_gzip_module 6666 —without-http_ssi_module 6666 —without-http_userid_module 6666 —without-http_access_module 6666 —without-http_auth_basic_module 6666 —without-http_autoindex_module 6666 —without-http_geo_module 6666 —without-http_map_module 6666 —without-http_split_clients_module 6666 —without-http_referer_module 6666 —without-http_rewrite_module 6666 —without-http_proxy_module 6666 —without-http_fastcgi_module 6666 —without-http_uwsgi_module 6666 —without-http_scgi_module 6666 —without-http_memcached_module 6666 —without-http_limit_conn_module 6666 —without-http_limit_req_module 6666 —without-http_empty_gif_module 6666 —without-http_browser_module 6666 —without-http_upstream_hash_module 6666 —without-http_upstream_ip_hash_module 6666 —without-http_upstream_least_conn_module 6666 —without-http_upstream_keepalive_module 6666 —without-http_upstream_zone_module 6666 —with-http_perl_module 6666 —with-http_perl_module=dynamic 6666 —with-perl_modules_path=PATH 6666 —with-perl=PATH 6666 —http-log-path=PATH 6666 —http-client-body-temp-path=PATH 6666 —http-proxy-temp-path=PATH 6666 —http-fastcgi-temp-path=PATH 6666 —http-uwsgi-temp-path=PATH 6666 —http-scgi-temp-path=PATH 6666 —without-http 6666 —without-http-cache 6666 —with-mail 6666 —with-mail=dynamic 6666 —with-mail_ssl_module 6666 —without-mail_pop3_module 6666 —without-mail_imap_module 6666 —without-mail_smtp_module 6666 —with-stream 6666 —with-stream=dynamic 6666 —with-stream_ssl_module 6666 —without-stream_limit_conn_module 6666 —without-stream_access_module 6666 —without-stream_upstream_hash_module 6666 —without-stream_upstream_least_conn_module 6666 —without-stream_upstream_zone_module 6666 —with-google_perftools_module 6666 —with-cpp_test_module 6666 —add-module=PATH 6666 —add-dynamic-module=PATH 6666 —with-cc=PATH 6666 —with-cpp=PATH 6666 —with-cc-opt=OPTIONS 6666 —with-ld-opt=OPTIONS 6666 —with-cpu-opt=CPU 6666 —without-pcre 6666 —with-pcre 6666 —with-pcre=DIR 6666 —with-pcre-opt=OPTIONS 6666 —with-pcre-jit 6666 —with-md5=DIR 6666 —with-md5-opt=OPTIONS 6666 —with-md5-asm 6666 —with-sha1=DIR 6666 —with-sha1-opt=OPTIONS 6666 —with-sha1-asm 6666 —with-zlib=DIR 6666 —with-zlib-opt=OPTIONS 6666 —with-zlib-asm=CPU 6666 —with-libatomic 6666 —with-libatomic=DIR 6666 —with-openssl=DIR 6666 —with-openssl-opt=OPTIONS 6666 —with-debug 6666

最新文章

Return Top