./configure: error: SSL modules require the OpenSSL library. You can either do not enable the modules, or install the OpenSSL library into the system, or build the OpenSSL library statically from the source with nginx by using --with-openssl= option
PCRE库已经安装,可是./configure nginx的时候仍然出现以上的错误,通过指定PCRE库的路径可以解决
./configure --user=user --group=user --with-http_stub_status_module --with-http_ssl_module --with-zlib=/usr/local/src/zlib-1.2.7 --with-openssl=/usr/local/openssl