Nginx 部署常见问题整理

错误提示:

./configure: error: the HTTP rewritemodule requires the PCRE library.

You can either disable the module byusing --without-http_rewrite_module

option, or install the PCRE library intothe system, or build the PCRE library

statically from the source with nginx byusing --with-pcre=<path> option.

解决方案

yum -y install pcre-devel

错误提示:

./configure: error: the HTTP cachemodule requires md5 functions

from OpenSSL library.   You can either disable the module by using

--without-http-cache option, or install the OpenSSL library into the system,

or build the OpenSSL library statically fromthe source with nginx by using

--with-http_ssl_module--with-openssl=<path> options.

解决方案

yum  -y install openssl openssl-devel

错误提示 

./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 thezlib library into the system, or build the zlib library

statically from the source with nginx byusing --with-zlib=<path> option.

解决方案

yuminstall-y zlib-devel


猜你喜欢

转载自blog.csdn.net/weixin_37264997/article/details/80003092