Nginx編譯參數大全 configure參數中文詳解
2024-08-30 12:21:41
供稿:網友
這篇文章主要介紹了Nginx編譯參數大全,Nginx configure參數中文詳解,需要的朋友可以參考下 Nginx編譯參數:
./configure --help
--help 顯示本提示信息
--prefix=PATH 設定安裝目錄
--sbin-path=PATH 設定程序文件目錄
--conf-path=PATH 設定配置文件(nginx.conf)目錄
--error-log-path=PATH 設定錯誤日志目錄
--pid-path=PATH 設定pid文件(nginx.pid)目錄
--lock-path=PATH 設定lock文件(nginx.lock)目錄
--user=USER 設定程序運行的用戶環境(www)
--group=GROUP 設定程序運行的組環境(www)
--builddir=DIR 設定程序編譯目錄
--with-rtsig_module 允許rtsig模塊
--with-select_module 允許select模塊(一種輪詢模式,不推薦用在高載環境)
--without-select_module 不使用select模塊
--with-poll_module 允許poll模塊(一種輪詢模式,不推薦用在高載環境)
--without-poll_module 不使用poll模塊
--with-http_ssl_module 允許ngx_http_ssl_module模塊(Apache對應:mod_ssl)
--with-http_realip_module 允許ngx_http_realip_module模塊(mod_rpaf)
--with-http_addition_module 允許ngx_http_addition_module模塊(mod_layout)
--with-http_xslt_module 允許ngx_http_xslt_module模塊
--with-http_sub_module 允許ngx_http_sub_module模塊
--with-http_dav_module 允許ngx_http_dav_module模塊(mod_dav)
--with-http_flv_module 允許ngx_http_flv_module模塊(mod_flvx)
--with-http_gzip_static_module 允許ngx_http_gzip_static_module模塊(mod_dflate)
--with-http_random_index_module 允許ngx_http_random_index_module模塊(mod_autoindex)
--with-http_stub_status_module 允許ngx_http_stub_status_module模塊(mod_status)
--without-http_charset_module 不使用ngx_http_charset_module模塊
--without-http_gzip_module 不使用ngx_http_gzip_module模塊
--without-http_ssi_module 不使用ngx_http_ssi_module模塊
--without-http_userid_module 不使用ngx_http_userid_module模塊
--without-http_access_module 不使用ngx_http_access_module模塊
--without-http_auth_basic_module 不使用ngx_http_auth_basic_module模塊
--without-http_autoindex_module 不使用ngx_http_autoindex_module模塊
--without-http_geo_module 不使用ngx_http_geo_module模塊
--without-http_map_module 不使用ngx_http_map_module模塊
--without-http_referer_module 不使用ngx_http_referer_module模塊
--without-http_rewrite_module 不使用ngx_http_rewrite_module模塊
--without-http_proxy_module 不使用ngx_http_proxy_module模塊
--without-http_fastcgi_module 不使用ngx_http_fastcgi_module模塊
--without-http_memcached_module 不使用ngx_http_memcached_module模塊
--without-http_limit_zone_module 不使用ngx_http_limit_zone_module模塊
--without-http_empty_gif_module 不使用ngx_http_empty_gif_module模塊
--without-http_browser_module 不使用ngx_http_browser_module模塊
--without-http_upstream_ip_hash_module 不使用ngx_http_upstream_ip_hash_module模塊
--with-http_perl_module 允許ngx_http_perl_module模塊
--with-perl_modules_path=PATH 設置perl模塊路徑
--with-perl=PATH 設置perl庫文件路徑
--http-log-path=PATH 設置access log文件路徑
--http-client-body-temp-path=PATH 設置客戶端請求臨時文件路徑
--http-proxy-temp-path=PATH 設置http proxy臨時文件路徑