admin管理员组

文章数量:1531659

官网: Controlling nginx

翻译部分: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.

 之后,USR1信号应发送至主进程。


The master process will then re-open all currently open log files and assign them an unprivileged user under which the worker processes are running, as an owner.

然后,主进程将重新打开所有当前打开的日志文件,并为它们分配一个工作进程运行时所使用的非特权用户作为所有者。 


After successful re-opening, the master process closes all open files and sends the message to worker process to ask them to re-open files.

 成功重新打开后,主进程关闭所有打开的文件,并将消息发送给工作进程&#

本文标签: 文档文件官方日志