nginx 컴 파일 설치 설정 모듈 전체

14336 단어
configure 명령 으로 구축 을 설정 합 니 다.이것 은 nginx 가 연결 처리 에 사용 할 수 있 도록 하 는 방법 을 포함 하여 시스템 의 각 방면 을 정의 했다.마지막 으로 Makefile 을 만 듭 니 다.이 configure 명령 은 다음 매개 변 수 를 지원 합 니 다: -- help

--prefix=path
             。                   configure(      ) nginx.conf     。/usr/local/nginx          。

--sbin-path=path
  nginx        。           。     ,     prefix/sbin/nginx。

--modules-path=path
        nginx       。       prefix/modules  。

--conf-path=path
  nginx.conf       。    ,             nginx                。     ,     。 -c fileprefix/conf/nginx.conf

--error-log-path=path
      ,          。   ,    nginx.conf  error_log                。     ,     prefix/logs/error.log。

--pid-path=path
  nginx.pid         ID     。   ,    nginx.conf  pid                。     ,     prefix/logs/nginx.pid。

--lock-path=path
            。   ,    nginx.conf  lock_file               。     ,   prefix/logs/nginx.lock

--user=name
            ,           。   ,    nginx.conf                  。      nobody。

--group=name
                  。   ,    nginx.conf                  。     ,              。

--build=name
       nginx    。

--builddir=path

--with-select_module 와 -- without - selectmodule
               select()     。         kqueue,epoll / dev / poll       ,         。

--with-poll_module 와 -- without - pollmodule
               poll()     。         kqueue,epoll / dev / poll       ,         。

--with-threads 

--with-file-aio
    FreeBSD Linux        I / O(AIO)。

--with-http_ssl_module 
     HTTPS        HTTP         。           。  OpenSSL          。

--with-http_v2_module
        ,      HTTP / 2    。           。

--with-http_realip_module
    ngx_http_realip_module   ,                           。           。

--with-http_addition_module
    ngx_http_addition_module   ,                。           。

--with-http_xslt_module 와 -- with - httpxslt_module=dynamic
    ngx_http_xslt_module   ,           XSLT     XML  。           。 libxml2    libxslt           。

--with-http_image_filter_module 와 -- with - httpimage_filter_module=dynamic
    ngx_http_image_filter_module   ,        JPEG,GIF,PNG WebP     。           。

--with-http_geoip_module 와 -- with - httpgeoip_module=dynamic 
    ngx_http_geoip_module   ,         IP       MaxMind        。           。

--with-http_sub_module
    ngx_http_sub_module   ,                                。           。

--with-http_dav_module
    ngx_http_dav_module   ,      WebDAV           。           。

--with-http_flv_module
    ngx_http_flv_module   ,     Flash Video(FLV)            。           。

--with-http_mp4_module
    ngx_http_mp4_module   ,     MP4            。           。

--with-http_gunzip_module
      “ gzip”          ngx_http_gunzip_module   ,      “ Content-Encoding: gzip”      。           。

--with-http_gzip_static_module
    ngx_http_gzip_static_module   ,        .gz    “ ”      ,       。           。

--with-http_auth_request_module
    ngx_http_auth_request_module   ,                   。           。

--with-http_random_index_module
    ngx_http_random_index_module   ,         (' /')     ,                   。           。

--with-http_secure_link_module
     ngx_http_secure_link_module   。           。

--with-http_degradation_module
     ngx_http_degradation_module  。           。

--with-http_slice_module
    ngx_http_slice_module   ,             ,              。               。           。

--with-http_stub_status_module
    ngx_http_stub_status_module   ,                。           。

--without-http_charset_module
    ngx_http_charset_module   ,              “ Content-Type”      ,                      。

--without-http_gzip_module
        HTTP        。zlib              。

--without-http_ssi_module
         SSI(      )    ngx_http_ssi_module     。

--without-http_userid_module
    ngx_http_userid_module   ,               cookie。

--without-http_access_module
    ngx_http_access_module   ,                   。

--without-http_auth_basic_module
    ngx_http_auth_basic_module   ,          “ HTTP      ”                   。

--without-http_mirror_module
    ngx_http_mirror_module   ,                         。

--without-http_autoindex_module
     ngx_http_autoindex_module   ,      (' /')     ,  ngx_http_index_module                    。

--without-http_geo_module
    ngx_http_geo_module   ,                 IP  。

--without-http_map_module
    ngx_http_map_module   ,                    。

--without-http_split_clients_module
    ngx_http_split_clients_module   ,        A / B     。

--without-http_referer_module
    ngx_http_referer_module   ,         “ Referer”                  。

--without-http_rewrite_module
      HTTP              URI   。          PCRE 。

--without-http_proxy_module
    HTTP        。

--without-http_fastcgi_module
           FastCGI     ngx_http_fastcgi_module  。

--without-http_uwsgi_module
           uwsgi     ngx_http_uwsgi_module  。

--without-http_scgi_module
           SCGI     ngx_http_scgi_module  。

--without-http_grpc_module
           gRPC     ngx_http_grpc_module  。

--without-http_memcached_module
    ngx_http_memcached_module   ,     memcached       。

--without-http_limit_conn_module
    ngx_http_limit_conn_module   ,             ,  ,  IP      。

--without-http_limit_req_module
    ngx_http_limit_req_module   ,                 ,  ,    IP          。

--without-http_empty_gif_module
           GIF    。

--without-http_browser_module
    ngx_http_browser_module   ,              “ User-Agent”        。

--without-http_upstream_hash_module

--without-http_upstream_ip_hash_module
      ip_hash           。

--without-http_upstream_least_conn_module
       minimum_conn           。

--without-http_upstream_keepalive_module

--without-http_upstream_zone_module
      ,                          。

--with-http_perl_module 와 -- with - httpperl_module=dynamic
        Perl  。           。

--with-perl_modules_path=path
      ,      Perl  。

--with-perl=path
  Perl        。

--http-log-path=path
  HTTP              。   ,    nginx.conf  access_log                。     ,     prefix/logs/access.log。

--http-client-body-temp-path=path
                       。   ,    nginx.conf  client_body_temp_path               。     ,     prefix/client_body_temp。

--http-proxy-temp-path=path
      ,                       。   ,    nginx.conf  proxy_temp_path               。     ,     prefix/proxy_temp。

--http-fastcgi-temp-path=path
      ,       FastCGI              。   ,    nginx.conf  fastcgi_temp_path               。     ,     prefix/fastcgi_temp。

--http-uwsgi-temp-path=path
      ,       uwsgi              。   ,    nginx.conf  uwsgi_temp_path               。     ,     prefix/uwsgi_temp。

--http-scgi-temp-path=path
      ,       SCGI              。   ,    nginx.conf  scgi_temp_path               。     ,     prefix/scgi_temp。

--without-http
  HTTP   。

--without-http-cache
  HTTP  。

-- with - mail 과 -- with - mail = dynamic
  POP3 / IMAP4 / SMTP        。

--with-mail_ssl_module
        ,               SSL / TLS    。           。  OpenSSL          。

--without-mail_pop3_module
            POP3  。

--without-mail_imap_module
            IMAP  。

--without-mail_smtp_module
            SMTP  。

-- with - stream 과 -- with - stream = dynamic
         TCP / UDP            。           。

--with-stream_ssl_module
        ,           SSL / TLS    。           。  OpenSSL          。

--with-stream_realip_module
    ngx_stream_realip_module      ,             PROXY          。           。

--with-stream_geoip_module 와 -- with - streamgeoip_module=dynamic
    ngx_stream_geoip_module   ,         IP       MaxMind        。           。

--with-stream_ssl_preread_module
    ngx_stream_ssl_preread_module   ,       ClientHello        ,      SSL / TLS。           。

--without-stream_limit_conn_module
    ngx_stream_limit_conn_module   ,             ,  ,  IP      。

--without-stream_access_module
    ngx_stream_access_module   ,                   。

--without-stream_geo_module
    ngx_stream_geo_module   ,                IP  。

--without-stream_map_module
    ngx_stream_map_module   ,                   。

--without-stream_split_clients_module
    ngx_stream_split_clients_module   ,        A / B     。

--without-stream_return_module
    ngx_stream_return_module   ,                ,      。

--without-stream_upstream_hash_module

--without-stream_upstream_least_conn_module
       minimum_conn           。

--without-stream_upstream_zone_module
      ,                          。

--with-google_perftools_module
    ngx_google_perftools_module   ,        Google Performance Tools nginx           。      Nginx    ,        。

--with-cpp_test_module
     ngx_cpp_test_module  。

--add-module=path

--add-dynamic-module=path

--with-compat

--with-cc=path
  C      。

--with-cpp=path
  C       。

--with-cc-opt=parameters
      CFLAGS       。 FreeBSD     PCRE  , --with-cc-opt="-I /usr/local/include"    。  select()           ,        ,  : --with-cc-opt="-D FD_SETSIZE=2048"

--with-ld-opt=parameters
               。 FreeBSD     PCRE  , --with-ld-opt="-L /usr/local/lib"

--with-cpu-opt=cpu
     CPU     : pentium,pentiumpro, pentium3,pentium4, athlon,opteron, sparc32,sparc64, ppc64。

--without-pcre
  PCRE    。

--with-pcre
    PCRE 。

--with-pcre=path 
  PCRE     。   PCRE          (  4.48.43) 。    nginx ./configure    make。    location             ngx_http_rewrite_module        。

--with-pcre-opt=parameters
 PCRE        。

--with-pcre-jit
  “    ”  (1.1.12,pcre_jit  )  PCRE  。

--with-zlib=path 
  zlib     。   zlib        (  1.1.3-1.2.11)     。    nginx ./configure    make。ngx_http_gzip_module       。

--with-zlib-opt=parameters
 zlib        。

--with-zlib-asm=cpu
         CPU       zlib     : pentium,pentiumpro。

--with-libatomic
    libatomic_ops 。

--with-libatomic=path
  libatomic_ops     。

--with-openssl=path
  OpenSSL     。

--with-openssl-opt=parameters
 OpenSSL        。

--with-debug

좋은 웹페이지 즐겨찾기