Nginx installation steps
Download the nginx installation package from the nginx official website
Uploading to the server
Tar -zxvf Nginx installation package
configuration
./configure –prefix=/usr/local/nginx
compile
make make install
Install the SSL and HTTP V2 modules
./configure –user=nginx –group=nginx –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_ssl_module –with-http_v2_module
Replace the compiled file
cp ./objs/nginx /usr/local/nginx/sbin/
If you encounter the following problems
Nginx: [alert] kill(56, 1) Failed (3: No such process)
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf