Home >Backend Development >PHP Tutorial >nginx basic operation and maintenance

nginx basic operation and maintenance

WBOY
WBOYOriginal
2016-07-29 09:00:021049browse

启 The restart of the restart of RRR

<code>nginx -c /path/to/nginx.conf</code>
EE

nginx

Rreeee

nginx's stop

<code><span># 重新加载配置</span>
nginx <span>-s</span> reload
<span># 重新打开日志文件</span>
nginx <span>-s</span> reopen
<span># 平滑重启</span>
kill -HUP 主进程号</code>
nginx test configuration is correct

R

<code><span># 从容停止</span>
kill -QUIT 主进程号
<span># 快速停止</span>
kill -TERM 主进程号
<span># 强制停止</span>
kill -<span>9</span> 主进程号</code>
EEnginx upgrade

First replace the old program file

    Kill -USR2 old version of the main programs of the main programs. process number. The old process is automatically renamed
  1. to execute the new version of the binary program. Both processes handle requests simultaneously.
  2. kill -WINCH old version main process number. At this time, the old process no longer receives requests, and the new process handles them. Next, you can choose to keep the new process or the old process by observing whether it runs normally.
  3. Keep the old process:
  4. kill -HUP old main process number

kill -QUIT new main process number

    Keep the new process
  1. kill -QUIT old main process number

').addClass( 'pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i

').text(i)); }; $numbering.fadeIn(1700); }); });
  1. The above has introduced the basic operation and maintenance of nginx, including aspects of it. 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