<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Module-System on Horeb</title><link>https://horeb.top/tags/module-system/</link><description>Recent content in Module-System on Horeb</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><copyright>© 2026 JekYUlll</copyright><lastBuildDate>Fri, 29 May 2026 10:30:05 +0000</lastBuildDate><atom:link href="https://horeb.top/tags/module-system/index.xml" rel="self" type="application/rss+xml"/><item><title>Nginx 源码解析（十二）：模块系统与动态加载</title><link>https://horeb.top/posts/infra-nginx-%E6%BA%90%E7%A0%81%E8%A7%A3%E6%9E%90%E5%8D%81%E4%BA%8C%E6%A8%A1%E5%9D%97%E7%B3%BB%E7%BB%9F%E4%B8%8E%E5%8A%A8%E6%80%81%E5%8A%A0%E8%BD%BD/</link><pubDate>Fri, 29 May 2026 00:00:00 +0000</pubDate><guid>https://horeb.top/posts/infra-nginx-%E6%BA%90%E7%A0%81%E8%A7%A3%E6%9E%90%E5%8D%81%E4%BA%8C%E6%A8%A1%E5%9D%97%E7%B3%BB%E7%BB%9F%E4%B8%8E%E5%8A%A8%E6%80%81%E5%8A%A0%E8%BD%BD/</guid><description>&lt;p&gt;系列开篇就说过，Nginx 的所有功能都是模块提供的。前面的文章你看到了 HTTP 模块、Event 模块、Upstream 模块在各自领域的工作方式，现在是时候把视角拉回到模块系统本身，，看看 Nginx 的模块到底长什么样，静态模块怎么初始化，动态模块又是如何通过 &lt;code&gt;dlopen&lt;/code&gt; 加载进来的。&lt;/p&gt;
&lt;p&gt;这篇文章会深入 &lt;code&gt;ngx_module_t&lt;/code&gt; 的每一个字段，拆解 &lt;code&gt;ngx_modules.c&lt;/code&gt; 的生成逻辑、&lt;code&gt;ngx_count_modules()&lt;/code&gt; 的索引分配、&lt;code&gt;ngx_load_module()&lt;/code&gt; 的动态加载路径，以及模块 &lt;code&gt;commands&lt;/code&gt; 数组如何驱动配置文件解析器。&lt;/p&gt;</description></item></channel></rss>