Nginx - Controlling nginx

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nginx - Controlling nginx相关的知识,希望对你有一定的参考价值。

Controlled with signals:

master process:

TERM, INT fast shutdown
QUIT graceful shutdown
HUP changing configuration, keeping up with a changed time zone (only for FreeBSD and Linux), starting new worker processes with a new configuration, graceful shutdown of old worker processes
USR1 re-opening log files
USR2 upgrading an executable file
WINCH graceful shutdown of worker processes

worker process:

TERM, INT fast shutdown
QUIT graceful shutdown
USR1 re-opening log files
WINCH abnormal termination for debugging (requires debug_points to be enabled)

Changing Configuration (FreeBSD 4.x)

ps axw -o pid,ppid,user,%cpu,vsz,wchan,command | egrep ‘(nginx|PID)‘

Rotating Log-files

In order to rotate log files, they need to be renamed first. After that USR1 signal should be sent to the master process.

Upgrading Executable on the Fly

In order to upgrade the server executable, the new executable file should be put in place of an old file first. After that USR2 signal should be sent to the master process.

/usr/local/nginx/logs/nginx.pid.oldbin

以上是关于Nginx - Controlling nginx的主要内容,如果未能解决你的问题,请参考以下文章

usaco-Section 2.3-Controlling Companies

[React] Controlling Form Values with React

Controlling Access to the Kubernetes API

控制公司 Controlling Companies

洛谷P1475 控制公司 Controlling Companies

-Controlling the Iterative Execution .3.1