yokila
yokila
Published on 2025-02-10 / 3 Visits
0
0

nginx gzip

一、是否支持 gzip

对于 nginx,若要使用 gzip,则需要安装的 nginx 编译包含 ngx_http_gzip_module 模块。

ngx_http_gzip_module 是 nginx 的一个内置模块,默认是具备的,除非是编译安装时使用 --without-http_gzip_module 选项来禁用它,否则肯定有。

执行命令可检查:

nginx -V

主要关注有无出现:--without-http_gzip_module 这个编译命令,有出现则需要重新安装 nginx 以支持 gzip。


Comment