如何去掉不用的Nginx模块

去掉不用的nginx模块

在编译安装时,执行./configure方法时加上以下配置指令,可以显式的删除不用的模块:

./configure --without-module1 --without-module2 --without-module3

例如:

./configure --without-http_dav_module --withouthttp_spdy_module

注意事项:配置指令是由模块提供的。确保你禁用的模块不包含你需要使用的指令!在决定禁用模块之前,应该检查Nginx文档中每个模块可用的指令列表。

© 版权声明
THE END
喜欢就支持一下吧
点赞15 分享