Nginxコンパイルおよびインストール構成の説明

Nginxコンパイルおよびインストール構成の説明

1、makefileファイルを生成する際に、以下を参照できます:./configure
--prefix = / usr / local / nginx --conf-path = / etc / nginx / nginx.conf --user = nginx --group = nginx --error-log-path = / var / log / nginx / error.log --http-log-path = / var / log / nginx / access.log --pid-path = / var / run / nginx / nginx .pid --lock-path = / var / lock / nginx.lock --with-http_ssl_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_flv_module --with-http_mp4_module --http-client-body-temp -path = / var / tmp / nginx / client --http-proxy-temp-path = / var / tmp / nginx / proxy --http-fastcgi-temp-path = / var / tmp / nginx / fastcgi --with -デバッグ

2. Nginxコンパイルパラメータの説明–prefix
= PATHはインストールプレフィックスを設定します
#Set インストールパスを設定します–sbin-path = PATHはnginxバイナリパス名を設定し
ます#バイナリパスを設定します–conf-path = PATHはnginx.confパス名を設定します#nginx設定ファイルパスを設定します
--Error-log-path = PATHエラーログパス名を設定
エラーログパスを設定--pid-path = PATH nginx.pidパス名を設定#nginx.pidパスを設定--lock
-path = PATH nginx.lockパス名を設定#nginx.lockを設定パス
--user = USERは、
ワーカープロセスを実行する特別な権限のない
#Set ユーザープロセスの非特権ユーザーを設定します--group = GROUPワーカープロセスを実行する特別な権限のない#Set ユーザーグループの非特権グループを設定します--builddir = DIRビルドディレクトリを設定します#コンパイルディレクトリを設定し
ます–with-rtsig_module enable rtsig module #Open rtsig module
–with-select_module enable select module #Open the select module
–without-select_module disable select module #Close the select module
-with-poll_module投票モジュール#启用投票模块有効
-without-poll_module無効投票モジュール#关闭投票模块
-with-FILE-AIOをファイルAIOのサポート#开启ファイルAIO支持可能に
-with-IPv6のIPv6のサポートを有効にする#开启IPv6の支持
-withをngx_http_ssl_module#开启SSL模块有効-http_ssl_module
-with-http_spdy_module有効ngx_http_spdy_module#开启SPDY模块
-with-http_realip_module有効ngx_http_realip_module#开启realip模块
ngx_http_addition_module#开启添加模块有効-with-http_addition_moduleを
ngx_http_xslt_module#开启XSLT模块有効-with-http_xslt_moduleを
-with -http_image_filter_module enable ngx_http_image_filter_module#开启image_filter模块
–with-http_geoip_module enable ngx_http_geoip_module#开启geoip模块
--with-http_sub_moduleサブモジュールに#Turn ngx_http_sub_module有効
DAVモジュールに#Turn ngx_http_dav_module有効--with-http_dav_module
--with-http_flv_module FLVモジュールに#Turn ngx_http_flv_module有効
--with-http_mp4_module有効ngx_http_gun_zip_gunxモジュール
有効ngx_httpgun_zip_gunx モジュール#ENABLE MP4
ngx_http_gzip_static_module#オープンgzip_staticモジュールをイネーブルhttp_gzip_static_module--with
-with-http_auth_request_module有効ngx_http_auth_request_module#オープンauth_request(認証要求)モジュール
ngx_http_random_index_module#オープンrandom_index(推計学)を有効-with-http_random_index_moduleモジュール
-with-http_secure_link_module ngx_http_secure_link_module#オープンsecure_link(安全性を有効にしますリンク)モジュール
-with-http_degradation_module #Open ngx_http_degradation_module劣化モジュールを有効に
-with-http_stub_status_module #Open ngx_http_stub_status_module有効stub_statusモジュール
-without-http_charset_httpモジュール
無効ngx_http_charset_module
無効ngx_http_charset_module無効ngx_http_charset_module_module無効ngx_http_charset_http_charset_module_module無効ngx_g_charset_http_charset_module無効ngx_g_charset_http_charset_module_disable NGX-http_charset_module_gzip_module - NGX-Gなし
#閉じるSSIモジュール-without-http_userid_module無効ngx_http_userid_module#閉じるユーザーIDモジュール
-without-http_access_module無効ngx_http_access_module
#閉じるアクセスモジュール-without-http_auth_basic_module無効ngx_http_auth_basic_module#閉じるAUTH_BASICモジュール(基本認証
を無効にせず-http_autoindex_autoindex_autoインデックスモジュール)-索引)モジュール
-Without-http_geo_module無効ngx_http_geo_module#地理閉モジュール
-without-http_map_module無効ngx_http_map_module#閉じるマップモジュール
無効ngx_http_split_clients_module#近いsplit_clients(分割されたクライアント)モジュールhttp_split_clients_module -without
-without-http_referer_module無効ngx_http_referer_module#近いリファラー(リファラ)モジュール
- without-http_rewrite_module disable ngx_http_rewrite_module #close rewrite(rewrite)module
–without-http_proxy_module disable ngx_http_proxy_module
#close proxy(proxy)module –without-http_fastcgi_module disable ngx_http_fastcgi- module #Close fastcgi
module
–without-http_uwsgi_moduleu disable ngx_http_scgi_module #scgiモジュールを閉じます
-without-http_memcached_module無効ngx_http_memcached_module#关闭memcachedの模块
-without-http_limit_conn_module無効ngx_http_limit_conn_module#关闭limit_conn模块
-without-http_limit_req_module無効ngx_http_limit_req_module#关闭limit_req模块
-without-http_empty_gif_module無効ngx_http_empty_gif_module#关闭empty_gif模块
-without-http_browser_module無効ngx_http_browser_module#关闭ブラウザ模块
–without-http_upstream_ip_hash_module disable ngx_http_upstream_ip_hash_module#关闭ip_hash模块
–without-http_upstream_least_conn_module disable ngx_http_upstream_least_conn_module#关闭least_conn sim
块–without-http_upstream_keepalive_upl_up_keep_ive 关闭up_keep_ive 关闭up_keepalive_module
--With-http_perl_module enable ngx_http_perl_module #perlモジュール
を開きます--with-perl_modules_path = PATH set Perlモジュールパスを設定します
--with-perl = PATH set perlバイナリパス名#perl コマンドの
パスを設定します--http-log-path = PATH set httpアクセスログのパス名#Set access log path--
http-client-body-temp-path = PATH set path to store http client request body temporary files #Set storage path http client request body temporary files--
http-proxy-temp-path = PATHはhttpプロキシ一時ファイルを保存するためのパスを設定します#ストレージパスを設定しますhttpプロキシ一時ファイル-http
-fastcgi-temp-path = http fastcgi一時ファイルを保存するためのパスを設定します#fastcgi一時ファイルストレージパスを設定します
-http-uwsgi-temp-path = PATH http uwsgi一時ファイルを保存するパスを設定#uwsgi一時ファイルストレージパスを設定
--http -scgi-temp-path = PATH http scgi一時ファイルを保存するパス設定#scgi一時ファイルストレージパスを設定
--without-http disable HTTP server
#close http server --without-http-cache disable HTTP cache
#Close http cache --with-mail enable POP3 / IMAP4 / SMTP proxy module
#Open POP3 / IMAP4 / SMTP protocol module --with-mail_ssl_module enable ngx_mail_ssl_module#オープンnginxのメールのSSLモジュール
-without-mail_pop3_module無効ngx_mail_pop3_module#閉じるPOP3メールモジュール
-without-mail_imap_module無効ngx_mail_imap_module#クローズメールIMAPモジュール
-without-mail_smtp_module無効ngx_mail_smtp_module#クローズメールSMTPモジュール
-with-google_perftools_module有効ngx_google_perftools_module#オープンnginxののgoogle_perftools (Google Performance Tools)Module
–with-cpp_test_module enable ngx_cpp_test_module #Open cpp_test module
–add-module = PATH enable an external module #Open external module
--With-cc = PATH Cコンパイラパス名を設定#Cコンパイラパスを設定
--with-cpp = PATH Cプリプロセッサパス名を設定#Cプリプロセッサパス名を設定
--with-cc-opt = OPTIONS追加Cコンパイラオプションを設定#追加Cコンパイラオプション
--with-ld-opt = OPTIONSは追加のリンカーオプションを設定します#追加のリンカーオプションを設定します
--with-cpu-opt =指定されたCPUのCPUビルド、有効な値:pentium、pentiumpro、pentium3、pentium4、athlon、 opteron、sparc32、sparc64、ppc64#指定されたCPUの有効な値を
確立します。–without-pcre PCREライブラリの使用を無効にします#PCREライブラリの使用を閉じます
–with-pcre PCREライブラリの使用を強制します#指定されたPCREライブラリを強制的に使用します
–with-pcre = DIR set PCREライブラリソースへのパス#pcre使用パスを指定
--with-pcre-opt = OPTIONS PCREの追加ビルドオプションを設定#PCREの追加ビルドオプションを設定
--with-pcre-jit JITコンパイルサポートを使用してPCREをビルド#Build PCRE JITコンパイル待機する
--With-md5 = DIR md5ライブラリソースへのパスを設定#パスを設定md5ライブラリリソース
--with-md5-opt = OPTIONS md5の追加ビルドオプションを設定#md5の追加ビルドオプションを設定
--with-md5-asm md5アセンブラソースを使用#md5アセンブリソースを使用
--with-sha1 = DIR sha1ライブラリソースへのパスを設定#sha1ライブラリのパスを設定
--with-sha1-opt = OPTIONS sha1の追加のビルドオプションを設定
sha1の追加のビルドオプションを設定--with-sha1- asm use sha1アセンブラソース#sha1アセンブリソースを使用
--with-zlib = DIR zlibライブラリソースへのパスを設定#zlibライブラリのパスを指定
--with-zlib-opt = OPTIONS zlibに追加のビルドオプションを設定#zlibに追加のビルドオプションを設定
--With-zlib-asm = CPU
指定されたCPU用に最適化されたzlibアセンブラソースを使用、有効な値:
pentium、pentiumpro#指定されたCPU用に最適化されたzlibアセンブラソースを使用
--With-libatomic force libatomic_opsライブラリの使用#libatomicの使用を強制します
--with-libatomic = DIR libatomic_opsライブラリソースへのパスを設定#libatomicパスを設定
--with-openssl = DIR OpenSSLライブラリソースへのパスを設定#openssl ライブラリのパスを設定
--with-openssl -opt = OPTIONS OpenSSLの追加のビルドオプションを設定する#opensslの追加のビルドオプションを設定する
--with-debugデバッグログを有効にする#デバッグログを有効にする

おすすめ

転載: blog.csdn.net/weixin_44793172/article/details/107169688