Linux source code installation nginx tutorial, linux source code nginx
Install nginx in source code in two phases
1. Download nginx source code
2. Check the installation documentation, determine the installation options based on your actual situation, and install the SDK through the command line.
. /Configure -- prefix =/usr/local/nginx/-- sbin-path =/usr/local/nginx/sbin/nginx -- conf-path =/usr/local/nginx/conf /nginx. conf -- pid-path =/usr/local/nginx/logs/nginx. pid -- error-log-path =/usr/local/nginx/logs/error. log -- http-log-path =/usr/local/nginx/logs/access. log -- user = nginx -- group = nginx -- with-http_ssl_module -- with-pcre =/usr/local/src/pcre-8.36/-- with-pcre-jit -- with-zlib =/usr/local /src/zlib-1.0.11/
Note: The pcre and zlib are not the addresses you have installed for the program, but the addresses where the source code of the program is extracted.
Make & make install