admin管理员组文章数量:1130349
官网: 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.
成功重新打开后,主进程关闭所有打开的文件,并将消息发送给工作进程,要求它们重新打开文件。
Worker
官网: 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.
成功重新打开后,主进程关闭所有打开的文件,并将消息发送给工作进程,要求它们重新打开文件。
Worker
版权声明:本文标题:7、旋转日志文件-阅读官方文档 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1754583208a2704154.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论