开心六月综合激情婷婷|欧美精品成人动漫二区|国产中文字幕综合色|亚洲人在线成视频

    1. 
      
        <b id="zqfy3"><legend id="zqfy3"><fieldset id="zqfy3"></fieldset></legend></b>
          <ul id="zqfy3"></ul>
          <blockquote id="zqfy3"><strong id="zqfy3"><dfn id="zqfy3"></dfn></strong></blockquote>
          <blockquote id="zqfy3"><legend id="zqfy3"></legend></blockquote>
          打開APP
          userphoto
          未登錄

          開通VIP,暢享免費電子書等14項超值服

          開通VIP
          Tengine動態(tài)模塊擴展

          Tengine

          • 安裝tengine兼容nginx配置并啟用模塊ngx_http_concat_module
          • ngx_http_concat_module 該模塊類似于apache中的mod_concat模塊,用于合并多個文件在一個響應報文中。
          • --with-http_concat_module enable ngx_http_concat_module 靜態(tài)模塊
          • --with-http_concat_module=shared enable ngx_http_concat_module (shared) 動態(tài)模塊

            2.安裝

            yum install -y vim lrzsz tree screen psmisc lsof tcpdump wget ntpdate gcc gcc-c glibc glibc-devel pcre pcre-devel openssl openssl-devel systemd-devel net-tools iotop bc zip unzip zlib-devel bash-completion nfs-utils automake libxml2 libxml2-devel libxslt libxslt-devel perl perl-ExtUtils-Embed
            cd /usr/local/src
            wget http://tengine.taobao.org/download/tengine-2.1.2.tar.gz
            cd tengine-2.1.2

          查詢nginx的配置,并刪掉不支持的模塊

          /apps/nginx/sbin/nginx -V

          在tengine-2.1.2目錄下編譯安裝

          ./configure --prefix=/apps/tengine --user=nginx --group=nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre --add-module=/usr/local/src/echo-nginx-modulemake && make install

          在tengine配置文件中導入nginx配置文件

          vim /apps/tengine/conf/nginx.confinclude /apps/nginx/conf/server/*.conf;}

          3.將ngx_http_concat_module靜態(tài)直接編譯到tengine

          ./configure --prefix=/apps/tengine --user=nginx --group=nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre --add-module=/usr/local/src/echo-nginx-module --with-http_concat_modulemake && make install

          在配置文件location中打開concat模塊

          concat on;/apps/tengine/sbin/nginx -t/apps/tengine/sbin/nginx -s start

          4.刪除tengine重新安裝tengine,ngx_http_concat_module動態(tài)直接編譯到tengine

          在tengine-2.1.2目錄下編譯安裝

          ./configure --prefix=/apps/tengine --user=nginx --group=nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre --add-module=/usr/local/src/echo-nginx-modulemake && make install

          在tengine配置文件中導入nginx配置文件

          vim /apps/tengine/conf/nginx.confinclude /apps/nginx/conf/server/*.conf;}

          將ngx_http_concat_module動態(tài)模塊編譯到安裝目錄

          • 動態(tài)模塊可在不停止tengine(nginx),在配置文件中直接調用模塊重新載入配置文件完成對tengine的功能擴展
          ./configure --prefix=/apps/tengine --user=nginx --group=nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre --add-module=/usr/local/src/echo-nginx-module --with-http_concat_module=sharedmake dso_installll /apps/tengine/modules/rwxr-xr-x 1 root root 93264 Jun  1 10:42 ngx_http_concat_module.sovim /apps/tengine/conf/nginx.confdso {load ngx_http_concat_module.so;}/apps/tengine/sbin/nginx -t/apps/tengine/sbin/nginx -s start
          來源:http://www.icode9.com/content-4-221301.html
          本站僅提供存儲服務,所有內容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權內容,請點擊舉報
          打開APP,閱讀全文并永久保存 查看更多類似文章
          猜你喜歡
          類似文章
          Nginx實戰(zhàn)系列之功能篇
          Nginx內容替換模塊http_substitutions_filter_module及實用案例分享
          常用的Nginx重要模塊有什么?linux網(wǎng)絡管理學習
          架構設計:負載均衡層設計方案(3)
          nginx源碼分析
          centos編譯安裝nginx,及其編譯參數(shù)解析
          更多類似文章 >>
          生活服務
          分享 收藏 導長圖 關注 下載文章
          綁定賬號成功
          后續(xù)可登錄賬號暢享VIP特權!
          如果VIP功能使用有故障,
          可點擊這里聯(lián)系客服!

          聯(lián)系客服