スイッチングネットワーク
- インストールtengine互換nginxのように構成し、対応モジュールのngx_http_concat_module
- ngx_http_concat_moduleこのモジュールは、テキストメッセージに応答して複数のファイルを結合するためのApache mod_concatモジュールと同様です。
- --with-http_concat_module有効ngx_http_concat_module静态模块
- --with-http_concat_module = ngx_http_concat_module(共有)を有効に共有动态模块
2.インストール
yumを-y Vimのlrzszツリー画面をインストールpsmiscのlsofをtcpdumpのwgetコマンドにntpdateのgccはgcc-C ++のglibcのglibc-develのPCRE PCRE-のdevel opensslのopensslの-develのにsystemd-develのネットツールiotopのBCのzip解凍のzlib-develのbashの補完のnfs-utilsのautomakeにlibxml2のlibxml2-develのlibxsltののlibxsltの-develのPerl Perlは-のExtUtils-埋め込みの
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-module
make && make install
インポートnginxのプロファイルtengineプロフィール
vim /apps/tengine/conf/nginx.conf
include /apps/nginx/conf/server/*.conf;
}
3.静的tengineに直接コンパイルngx_http_concat_module
./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
make && make install
で、設定ファイルの場所で開く連結モジュール
concat on;
/apps/tengine/sbin/nginx -t
/apps/tengine/sbin/nginx -s start
4. tengineを再インストールtengine削除し、動的にtengineに直接コンパイルngx_http_concat_module
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-module
make && make install
インポートnginxのプロファイルtengineプロフィール
vim /apps/tengine/conf/nginx.conf
include /apps/nginx/conf/server/*.conf;
}
インストールディレクトリに動的モジュールngx_http_concat_moduleコンパイルされました
- 設定ファイルモジュールに直接呼び出さ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=shared
make dso_install
ll /apps/tengine/modules/
rwxr-xr-x 1 root root 93264 Jun 1 10:42 ngx_http_concat_module.so
vim /apps/tengine/conf/nginx.conf
dso {
load ngx_http_concat_module.so;
}
/apps/tengine/sbin/nginx -t
/apps/tengine/sbin/nginx -s start