<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## centos下yum安裝 nginx的RPM包可以在epel中找到,但版本較老;官方制作的RPM源較新 ### 官方RPM源 ~~~ [nginx] name=nginx repo baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/ gpgcheck=0 enabled=1 ~~~ 將“OS”替換為“rhel” 或“centos”,將“OSRELEASE” 替換為“6” 或 “7”; ### [官方RPM倉庫][1] ### RPM依賴 ~~~ yum install -y pcre-devel openssl-devel zlib-devel pcre zlib openssl ~~~ ### 安裝 ~~~ yum install -y nginx ~~~ ### rpm編譯參數 [編譯時默認支持的模塊][2] [編譯時默認不支持的模塊][3] [第三方模塊][4] `nginx -V` ~~~ --user=nginx --group=nginx --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --with-compat # 動態模塊兼容 --with-file-aio # 支持異步IO --with-threads # 支持線程池 --with-http_addition_module # 在響應報文的前后增加內容 --with-http_auth_request_module # 基于 subrequest 的結果的實現客戶端授權 --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module # 在客戶端不支持gzip情況下使用gunzip --with-http_gzip_static_module # 支持壓縮 --with-http_random_index_module # 請求以/結尾,則在目錄中任選一個作為index文件 --with-http_realip_module --with-http_secure_link_module --with-http_slice_module # 允許將請求拆分成子請求,每個 subrequest 返回一定范圍的響應。提供更有效的緩存的大文件。 --with-http_ssl_module # 支持ssl --with-http_stub_status_module # 提供基本的狀態信息 --with-http_sub_module # 將響應中的指定內容替換 --with-http_v2_module # 支持http2 --with-mail # 支持mail --with-mail_ssl_module # 支持mail的ssl --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -pie ~~~ ## centos下編譯安裝 ### 下載 http://nginx.org/download/nginx-xxx.tar.gz ### 解壓 ~~~ # tar xf nginx-1.12.1.tar.gz ~~~ ### 建立用戶(-r 為系統用戶) ~~~ # groupadd -r -g 110 nginx # useradd -r -g 110 -u 110 nginx ~~~ ### 解決依賴關系 ~~~ yum install -y pcre-devel openssl-devel zlib-devel pcre zlib openssl ~~~ ### 編譯參數 ~~~ --user=nginx \ --group=nginx \ --prefix=/usr/local/nginx \ --error-log-path=/var/log/nginx/error.log \ --http-log-path=/var/log/nginx/access.log \ --pid-path=/var/run/nginx.pid \ --lock-path=/var/run/nginx.lock \ --http-client-body-temp-path=/var/cache/nginx/client_temp \ --http-proxy-temp-path=/var/cache/nginx/proxy_temp \ --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \ --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp \ --http-scgi-temp-path=/var/cache/nginx/scgi_temp \ --with-compat \ --with-http_addition_module \ --with-http_auth_request_module \ --with-http_flv_module \ --with-http_mp4_module \ --with-http_gunzip_module \ --with-http_gzip_static_module \ --with-http_random_index_module \ --with-http_realip_module \ --with-http_secure_link_module \ --with-http_slice_module \ --with-http_ssl_module \ --with-http_stub_status_module \ --with-http_sub_module ~~~ ## 第三方模塊 [如何使用第三方模塊官方文檔][5] ~~~ ./configure ... --add-module=/usr/build/nginx-rtmp-module ./configure ... --add-dynamic-module=/path/to/module ~~~ 這里測試了[echo-nginx-module][6],目前的版本還未支持較新版本的nginx,因此使用nginx1.10.3搭配echo-nginx-module v0.60 [1]:http://nginx.org/packages/centos/ [2]:https://www.nginx.com/resources/admin-guide/installing-nginx-open-source/#modules_default [3]:https://www.nginx.com/resources/admin-guide/installing-nginx-open-source/#modules_not_default [4]:https://www.nginx.com/resources/admin-guide/installing-nginx-open-source/#modules_third_party [5]:https://www.nginx.com/resources/admin-guide/installing-nginx-open-source/#modules_third_party [6]:https://github.com/openresty/echo-nginx-module
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看