Home >Backend Development >PHP Tutorial >nginx notes-command

nginx notes-command

WBOY
WBOYOriginal
2016-07-30 13:31:24925browse

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn