CentOs6.5 安装Zlib
符号
阅读:1255
2021-03-31 21:49:46
评论:0
今天在搭建Tomcat+nginx 负载均衡环境时,提示我没有安装Zlib
提示的错误信息如下:
./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.
出现这样的问题,让我感觉很不爽,现在解决方法如下:CentOs6.5 安装Zlib
1、安装Zlib
# tar zxvf zlib-1.2.8.tar.gz
# cd zlib-1.2.8
# ./configure --prefix=/usr/local/zlib
# make && make install
声明
1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。