Nginx 编译安装时提示 the HTTP gzip module requires the zlib library
Nginx CentOS Ubuntu 大约 452 字现象
若在./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
阅读 5277 · 发布于 2019-04-19
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Java jcmd 查看虚拟机各种信息阅读 736
-
Arthas 使用 tt 命令抓取调用异常、调用耗时、传入参数、返回参数阅读 1755
-
Spring Boot logback 设置默认值阅读 1366
-
软考-系统架构设计师:人机界面设计阅读 1322
-
Java 中的自旋锁阅读 844
-
Golang 设置 GOROOT 和 GOPATH阅读 2715
-
Android 使用 CountDownTimer 类进行倒计时阅读 963
-
Android 使用 Intent 实现花式跳转阅读 3079
-
Spring Boot 使用 JavaMailSender 发送邮件阅读 1760
-
MySQL Explain 中的 key_len阅读 1144