php-fpm日志文件_日志文件问题-CircularLogArchiver

php-fpm日志文件

Logging is a good thing but unfortunately, it comes at a cost of disk space. and if left uncheck it can lead to systems running out of space.

日志记录是一件好事,但是不幸的是,它是以磁盘空间为代价的。 如果不选中它,可能导致系统空间不足。

If the particular system supports this, circular logging should be enabled to mitigate. Circular logging works but overwriting oldest logs first.

如果特定系统支持此功能,则应启用循环日志记录以缓解这种情况。 循环日志记录有效,但首先覆盖最旧的日志。

cl.png

Above shows the process to enable circular logging in Exchange
上面显示了在Exchange中启用循环日志记录的过程

This is great if the system supports it however if it doesn't, it forces administrators to manually clear logs, preferably before disk runs out of space.

如果系统支持它,则非常好,但是如果系统不支持,则它会强制管理员手动清除日志,最好在磁盘空间不足之前手动清除日志。

This is where CircularLogArchiver comes in. It enables circular logging functionality on any log files.

这是CircularLogArchiver的来源。它启用任何日志文件上的循环日志功能。

Usage : CircularLogArchiver.exe GO [/LP:LogPath] [/LE:LogExtention] [/AI:ArchiveInterval] [/AOT:ArchiveOlderThan] [/DAOT:DontArchiveOlderThan] [/DOT:DeleteOlderThan]

用法: CircularLogArchiver.exe GO [/ LP:LogPath] [/ LE:LogExtension] [/ AI:ArchiveInterval] [/ AOT:ArchiveOlderThan] [/ DAOT:DontArchiveOlderThan] [/ DOT:DeleteOlderThan]

Example : CircularLogArchiver.exe GO /LP:”C:\Logs” /LE:”*.log” /AI:”M” /AOT:”1″ /DAOT:”3″ /DOT:”3″

示例: CircularLogArchiver.exe GO /LP:“C:\Logs”/LE:“*.log”/AI:“M”/AOT:“1”/DAOT:“3”/DOT:“3”

Example above will archive all files in “C:\Logs” with *.log extension that are between one and three months old and it will delete files older than three months

上面的示例将存档扩展名为* .log且在“ C:\ Logs”中的文件,这些文件的存在时间为一到三个月,并且它将删除三个月以上的文件

CircularLogArhiver can be downloaded from http://blog.ittelligence.com/wp-content/uploads/2017/10/CircularLogArchiver.zip

可以从http://blog.ittelligence.com/wp-content/uploads/2017/10/CircularLogArchiver.zip下载CircularLogArhiver

clbefore.png

Before 之前

clafter.png

After



Please do not forget to press the "Thumb's Up" button if this article was helpful and valuable for EE members. 如果本文对EE成员有用且有价值,请不要忘记按“ Thumb's Up”按钮。

It also provides me with positive feedback. Thank you!  

它还为我提供了积极的反馈。 谢谢!  

翻译自: https://www.experts-exchange.com/articles/29108/Log-file-problem-CircularLogArchiver.html

php-fpm日志文件

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值