1 --help print this message
2
3 --prefix=PATH set installation prefix
4 --sbin-path=PATH set nginx binary pathname
5 --conf-path=PATH set nginx.conf pathname
6 --error-log-path=PATH set error log pathname
7 --pid-path=PATH set nginx.pid pathname
8 --lock-path=PATH set nginx.lock pathname
9
10 --user=USER set non-privileged user for
11 worker processes
12 --group=GROUP set non-privileged group for
13 worker processes
14
15 --builddir=DIR set build directory
16
17 --with-rtsig_module enable rtsig module
18 --with-select_module enable select module
19 --without-select_module disable select module
20 --with-poll_module enable poll module
21 --without-poll_module disable poll module
22
23 --with-file-aio enable file AIO support
24 --with-ipv6 enable IPv6 support
25 --with-syslog enable syslog logging
26
27 --with-http_ssl_module enable ngx_http_ssl_module
28 --with-http_realip_module enable ngx_http_realip_module
29 --with-http_addition_module enable ngx_http_addition_module
30 --with-http_xslt_module enable ngx_http_xslt_module
31 --with-http_image_filter_module enable ngx_http_image_filter_module
32 --with-http_geoip_module enable ngx_http_geoip_module
33 --with-http_sub_module enable ngx_http_sub_module
34 --with-http_dav_module enable ngx_http_dav_module
35 --with-http_flv_module enable ngx_http_flv_module
36 --with-http_slice_module enable ngx_http_slice_module
37 --with-http_mp4_module enable ngx_http_mp4_module
38 --with-http_gzip_static_module enable ngx_http_gzip_static_module
39 --with-http_concat_module enable ngx_http_concat_module
40 --with-http_random_index_module enable ngx_http_random_index_module
41 --with-http_secure_link_module enable ngx_http_secure_link_module
42 --with-http_degradation_module enable ngx_http_degradation_module
43 --with-http_sysguard_module enable ngx_http_sysguard_module
44 --with-http_stub_status_module enable ngx_http_stub_status_module
45
46 --without-http_charset_module disable ngx_http_charset_module
47 --without-http_gzip_module disable ngx_http_gzip_module
48 --without-http_ssi_module disable ngx_http_ssi_module
49 --without-http_userid_module disable ngx_http_userid_module
50 --without-http_footer_module disable ngx_http_footer_module
51 --without-http_access_module disable ngx_http_access_module
52 --without-http_auth_basic_module disable ngx_http_auth_basic_module
53 --without-http_autoindex_module disable ngx_http_autoindex_module
54 --without-http_geo_module disable ngx_http_geo_module
55 --without-http_map_module disable ngx_http_map_module
56 --without-http_split_clients_module disable ngx_http_split_clients_module
57 --without-http_referer_module disable ngx_http_referer_module
58 --without-http_rewrite_module disable ngx_http_rewrite_module
59 --without-http_proxy_module disable ngx_http_proxy_module
60 --without-http_fastcgi_module disable ngx_http_fastcgi_module
61 --without-http_uwsgi_module disable ngx_http_uwsgi_module
62 --without-http_scgi_module disable ngx_http_scgi_module
63 --without-http_memcached_module disable ngx_http_memcached_module
64 --without-http_limit_zone_module disable ngx_http_limit_zone_module
65 --without-http_limit_req_module disable ngx_http_limit_req_module
66 --without-http_empty_gif_module disable ngx_http_empty_gif_module
67 --without-http_browser_module disable ngx_http_browser_module
68 --without-http_upstream_ip_hash_module
69 disable ngx_http_upstream_ip_hash_module
70
71 --with-http_perl_module enable ngx_http_perl_module
72 --with-perl_modules_path=PATH set Perl modules path
73 --with-perl=PATH set perl binary pathname
74
75 --http-log-path=PATH set http access log pathname
76 --http-client-body-temp-path=PATH set path to store
77 http client request body temporary files
78 --http-proxy-temp-path=PATH set path to store
79 http proxy temporary files
80 --http-fastcgi-temp-path=PATH set path to store
81 http fastcgi temporary files
82 --http-uwsgi-temp-path=PATH set path to store
83 http uwsgi temporary files
84 --http-scgi-temp-path=PATH set path to store
85 http scgi temporary files
86
87 --without-http disable HTTP server
88 --without-http-cache disable HTTP cache
89
90 --with-mail enable POP3/IMAP4/SMTP proxy module
91 --with-mail_ssl_module enable ngx_mail_ssl_module
92 --without-mail_pop3_module disable ngx_mail_pop3_module
93 --without-mail_imap_module disable ngx_mail_imap_module
94 --without-mail_smtp_module disable ngx_mail_smtp_module
95
96 --with-google_perftools_module enable ngx_google_perftools_module
97 --with-cpp_test_module enable ngx_cpp_test_module
98 --with-backtrace_module enable ngx_backtrace_module
99
100 --add-module=PATH enable an external module
101
102 --with-cc=PATH set C compiler pathname
103 --with-cpp=PATH set C preprocessor pathname
104 --with-cc-opt=OPTIONS set additional C compiler options
105 --with-ld-opt=OPTIONS set additional linker options
106 --with-cpu-opt=CPU build for the specified CPU, valid values:
107 pentium, pentiumpro, pentium3, pentium4,
108 athlon, opteron, sparc32, sparc64, ppc64
109
110 --without-pcre disable PCRE library usage
111 --with-pcre force PCRE library usage
112 --with-pcre=DIR set path to PCRE library sources
113 --with-pcre-opt=OPTIONS set additional build options for PCRE
114
115 --with-md5=DIR set path to md5 library sources
116 --with-md5-opt=OPTIONS set additional build options for md5
117 --with-md5-asm use md5 assembler sources
118
119 --with-sha1=DIR set path to sha1 library sources
120 --with-sha1-opt=OPTIONS set additional build options for sha1
121 --with-sha1-asm use sha1 assembler sources
122
123 --with-zlib=DIR set path to zlib library sources
124 --with-zlib-opt=OPTIONS set additional build options for zlib
125 --with-zlib-asm=CPU use zlib assembler sources optimized
126 for the specified CPU, valid values:
127 pentium, pentiumpro
128
129 --with-libatomic force libatomic_ops library usage
130 --with-libatomic=DIR set path to libatomic_ops library sources
131
132 --with-openssl=DIR set path to OpenSSL library sources
133 --with-openssl-opt=OPTIONS set additional build options for OpenSSL
134
135 --with-debug enable debug logging
![复制代码](https://common.cnblogs.com/images/copycode.gif)