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

nginx notes-command

WBOY
Release: 2016-07-30 13:31:24
Original
926 people have browsed it

1. Start

<code><span>$ </span>nginx</code>
Copy after login

2. After starting, you can use

<code>$ nginx <span>-s</span> signal</code>
Copy after login

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>
Copy after login

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>
Copy after login

3. Get the list of running nginx processes:

<code><span>$ </span>ps -ax | grep nginx</code>
Copy after login

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template