1. Start
<code><span>$ </span>nginx</code>
2. After starting, you can use
<code>$ nginx <span>-s</span> signal</code>
signal. You can choose one of the following:
<code>stop — fast shutdown quit — graceful shutdown reload — reloading <span>the</span> configuration <span>file</span> reopen — reopening <span>the</span><span>log</span><span>files</span></code>
For example, if you want to wait for worker processes to complete the current request and stop nginx processes, then use the following command:
<code>$ nginx <span>-s</span> quit</code>
3. Get the list of running nginx processes:
<code><span>$ </span>ps -ax | grep nginx</code>
Copyright statement: Just mention me when reprinting...
The above has introduced the nginx notes-command, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.