nginx 引入 Dynamic Module 架構

jopen 8年前發布 | 8K 次閱讀 Nginx

nginx 在 1.9.11 版引入了 Dynamic Module,能夠更方便的決定要掛哪些模組使用了:「 Introducing Dynamic Modules in NGINX 1.9.11 」。

從以往的:

nginx 引入 Dynamic Module 架構

多了一個選項:

nginx 引入 Dynamic Module 架構

也因此多了 load_module 功能可以用:

To load a module at runtime, include the new load_module directive in the main context, specifying the path to the shared object file for the module, enclosed in quotation marks. When you reload the configuration or restart NGINX, the module is loaded in. You can specify a path relative to the source directory, as in these examples, or a full path.

load_module "modules/ngx_http_geoip_module.so";
load_module "modules/ngx_stream_module.so";

</div> </div>

來自: https://blog.gslin.org/archives/2016/02/10/6293/nginx-引入-dynamic-module-架構/

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!