1.描述:
这个模块主要是用来运行时动态加载模块,而不用每次都要重新编译Tengine.
如果你想要编译官方模块为动态模块,你需要在configure的时候加上类似这样的指令(—with-http_xxx_module),./configure —help可以看到更多的细节.
如果只想要安装官方模块为动态模块(不安装Nginx),那么就只需要configure之后,执行 make dso_install命令.
动态加载模块的个数限制为128个.
如果已经加载的动态模块有修改,那么必须重起Tengine才会生效.
只支持HTTP模块.
模块 在Linux/FreeeBSD/MacOS下测试成功.
2.编译步骤
$ cd /home/jihuan/tengine-2.0.3
$ ./configure --prefix=/usr/local/tengine --with-http_trim_filter_module=shared
$ make
$ make dso_install
安装完之后在/usr/local/tengine