(20200305已解决)Nginx配置错误./configure: error: the HTTP gzip module requires the zlib library

  • 问题描述

    如图所示,configure配置prefix出现错误:

    在这里插入图片描述

  • 解决方案

    yum install -y zlib-devel

    再配置./configure --prefix=/home/nginx

    成功:

    在这里插入图片描述

发布了800 篇原创文章 · 获赞 1155 · 访问量 72万+

猜你喜欢

转载自blog.csdn.net/The_Time_Runner/article/details/104676462
今日推荐