- 积分
- 244
- 威望
-
- 金钱
-
- 注册时间
- 2010-10-20
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2016-1-25 10:56:26
|
显示全部楼层
Incorrect number of arguments
Usage: /usr/local/apache/bin/rotatelogs [-l] [-f] <logfile> {<rotation time in seconds>|<rotation size in megabytes>} [offset minutes from UTC]
Add this:
TransferLog "|/usr/local/apache/bin/rotatelogs /some/where 86400"
or
TransferLog "|/usr/local/apache/bin/rotatelogs /some/where 5M"
to httpd.conf. The generated name will be /some/where.nnnn where nnnn is the
system time at which the log nominally starts (N.B. if using a rotation time,
the time will always be a multiple of the rotation time, so you can synchronize
cron scripts with it). At the end of each rotation time or when the file size
is reached a new log is started. |
|