Nginx 编译安装时提示 the HTTP gzip module requires the zlib library
Nginx CentOS Ubuntu About 452 words现象
若在./configure
后添加--with-http_gzip_static_module
参数(添加gzip
压缩模块)提示以下错误:
./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
CentOS
sudo yum install zlib-devel
Ubuntu
sudo apt-get install zlib1g-dev
Views: 13,601 · Posted: 2019-04-19
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓

Loading...