After the openssl upgrade, nginx re-compiles and installs the tutorial, opensslnginx
Nginx recompilation and installation tutorial after openssl upgrade
Openssl1.0.2 or later must be installed. problems may occur when you recompile and install nginx./cannot be found /. in the openssl path, find the auto/lib/openssl/conf file in the nginx source code path and remove it. openssl # tar zxvf nginx-1.10.2.tar.gz # cd nginx-1.10.2/# vim auto/lib/openssl/conf # Find the following content. remove CORE_INCS = "$ CORE_INCS $ openssl /. openssl/include "CORE_DEPS =" $ CORE_DEPS $ OPENSSL /. openssl/include/openssl/ssl. h "CORE_LIBS =" $ CORE_LIBS $ OPENSSL /. openssl/lib/libssl. a "CORE_LIBS =" $ CORE_LIBS $ OPENSSL /. openssl/lib/libcrypto. a "CORE_LIBS =" $ CORE_LIBS $ NGX_LIBDL"
Tar-zxvf nginx-1.10.2.tar.gz
Cd nginx-1.10.2
./Configure \
-- Prefix =/usr/local/nginx \
With-http_ssl_module \
-- With-openssl =/usr/local/openssl-1.0.2j \
-- With-pcre =/usr/local/pcre-8.39 \
-- With-zlib =/usr/local/zlib-1.2.10 \
With-http_stub_status_module \
-- With-threads
Make & make install