Source code to install nginx, the process is divided into two stages
1. Download the nginx source code, the address is: http://nginx.org/en/download.html
2. Check the installation documentation, according to your actual situation, check the installation documentation http://nginx.org/en/docs/configure.html
Determine the installation options and install 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 address of the program you installed, but the address where the source code of the program is decompressed
make && make install