启 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- to execute the new version of the binary program. Both processes handle requests simultaneously.
- 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.
-
Keep the old process:
- kill -HUP old main process number
kill -QUIT new main process number
Keep the new process-
- 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);
});
});
-
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