Nginx Start, Restart, and Stop Commands
How to Stop Nginx: A Step-by-Step Guide
Stopping Nginx is done by sending a signal to the Nginx process (refer to Linux articles to learn what a signal is).
Step 1: Find the Nginx master process ID
ps -ef | grep nginx
In the process list, locate the master process; its PID number is the master process ID.
Step 2: Send the signal to gracefully stop Nginx …