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
阅读 8009 · 发布于 2019-04-19
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
skaffold init 提示 one or more valid Kubernetes manifests are required to run skaffold阅读 364
-
Java 中的锁阅读 1377
-
Angular error TS2564: Property 'xx' has no initializer and is not definitely assigned in the constructor.阅读 351
-
Golang JSON 的序列化和反序列化阅读 2925
-
Java Lombok 注解阅读 2082
-
RabbitMQ 用户相关命令阅读 769
-
Dockerfile 多阶段构建 Docker 镜像阅读 153
-
Java synchronized 保证可见性阅读 1076
-
Docker 部署 Grafana阅读 2569
-
算法:数组中的第 K 个最大元素阅读 713