Nginx模块管理和进程管理

Nginx和Apache一样,同样适用饿模块化管理,但是和Apache“热插拔”(每次添加模块的时候,不需要重新编译,只需要重新载入即可)的方式不同,Nginx每次添加一个模块或删除一个模块的话都需要重新编译才可以适用相应的功能模块。

上一篇()已经说了Nginx的主要模块包括core、event、http、mail和misc(杂项),而每一个模块根据需要又有很多模块,这5类模块只有core是不可以禁止,其他的模块可以根据实际情况进行选择。

选择适用Nginx的模块

在Nginx(1.8.0)目录下适用./configure –help可以查看哪些模块已经被安装:

[root@iZ94sni08orZ nginx-1.8.0]# ./configure –help –helpprint this message –prefix=PATHset installation prefix –sbin-path=PATHset nginx binary pathname –conf-path=PATHset nginx.conf pathname –error-log-path=PATHset error log pathname –pid-path=PATHset nginx.pid pathname –lock-path=PATHset nginx.lock pathname –user=USERset non-privileged user forworker processes –group=GROUPset non-privileged group forworker processes –build=NAMEset build name –builddir=DIRset build directory –with-rtsig_moduleenable rtsig module –with-select_moduleenable select module –without-select_moduledisable select module –with-poll_moduleenable poll module –without-poll_moduledisable poll module –with-threadsenable thread pool support –with-file-aioenable file AIO support –with-ipv6enable IPv6 support –with-http_ssl_moduleenable ngx_http_ssl_module –with-http_spdy_moduleenable ngx_http_spdy_module –with-http_realip_moduleenable ngx_http_realip_module –with-http_addition_moduleenable ngx_http_addition_module –with-http_xslt_moduleenable ngx_http_xslt_module –with-http_image_filter_module enable ngx_http_image_filter_module 。。。省略部分 –without-http_charset_moduledisable ngx_http_charset_module –without-http_gzip_moduledisable ngx_http_gzip_module –without-http_ssi_moduledisable ngx_http_ssi_module 。。。省略部分 ngx_http_upstream_hash_module –without-http_upstream_ip_hash_moduledisable ngx_http_upstream_ip_hash_module –without-http_upstream_least_conn_moduledisable ngx_http_upstream_least_conn_module –without-http_upstream_keepalive_moduledisable ngx_http_upstream_keepalive_module –with-http_perl_moduleenable ngx_http_perl_module –with-perl_modules_path=PATHset Perl modules path –with-perl=PATHset perl binary pathname –http-log-path=PATHset http access log pathname –http-client-body-temp-path=PATH set path to storehttp client request body temporary files –http-proxy-temp-path=PATHset path to storehttp proxy temporary files –http-fastcgi-temp-path=PATHset path to storehttp fastcgi temporary files –http-uwsgi-temp-path=PATHset path to storehttp uwsgi temporary files –http-scgi-temp-path=PATHset path to storehttp scgi temporary files –without-httpdisable HTTP server –without-http-cachedisable HTTP cache –with-mailenable POP3/IMAP4/SMTP proxy module –with-mail_ssl_moduleenable ngx_mail_ssl_module –without-mail_pop3_moduledisable ngx_mail_pop3_module –without-mail_imap_moduledisable ngx_mail_imap_module –without-mail_smtp_moduledisable ngx_mail_smtp_module –with-google_perftools_moduleenable ngx_google_perftools_module –with-cpp_test_moduleenable ngx_cpp_test_module –add-module=PATHenable an external module –with-cc=PATHset C compiler pathname –with-cpp=PATHset C preprocessor pathname –with-cc-opt=OPTIONSset additional C compiler options –with-ld-opt=OPTIONSset additional linker options –with-cpu-opt=CPUbuild for the specified CPU, valid values:pentium, pentiumpro, 。。。 ….省略部分 –with-openssl=DIRset path to OpenSSL library sources –with-openssl-opt=OPTIONSset additional build options for OpenSSL –with-debugenable debug logging[root@iZ94sni08orZ nginx-1.8.0]# 却又小到连一粒嫉妒的沙石也不能容纳

Nginx模块管理和进程管理

相关文章:

你感兴趣的文章:

标签云: