wget https://www.openssl.org/source/openssl-1.1.1.tar.gz
tar -xzvf openssl-1.1.1.tar.gz
wget http://www.zlib.net/zlib-1.2.11.tar.gz
tar -xzvf zlib-1.2.11.tar.gz
wget https://ftp.pcre.org/pub/pcre/pcre-8.37.tar.gz
tar -xzvf pcre-8.37.tar.gz
./configure --prefix=/usr/local/nginx --with-stream --with-pcre-jit --with-debug --with-stream_ssl_module --with-http_stub_status_module --with-http_ssl_module --with-openssl=../openssl-1.1.1 --with-pcre=../pcre-8.37 --with-zlib=../zlib-1.2.11
make
make install