赞
踩
今天在搭建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.
1、安装Zlib
# tar zxvf zlib-1.2.8.tar.gz
# cd zlib-1.2.8
# ./configure --prefix=/usr/local/zlib
# make && make install
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。