错误信息:
./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib=<path> option.

解决办法:
- 安装
zlib
sudo apt-get install zlib1g-dev
注意:
zlig1g-dev中的第5个字母不是l,而是阿拉伯数字1
当尝试配置nginx时遇到错误提示,指出HTTP gzip 模块需要zlib库。为了解决此问题,你可以通过禁用gzip模块,或者安装zlib库,或者将zlib静态编译进nginx。具体解决方案是使用`sudo apt-get install zlib1g-dev`来安装zlib1g-dev,确保安装过程中注意区分字母1和l。

1960

被折叠的 条评论
为什么被折叠?



