Rotating access.log and error.log
Jim Ohlstein
jim at ohlste.in
Fri Dec 11 20:12:21 MSK 2009
Danny Trinh wrote:
> Hello group,
>
> I like nginx. I have a dumb question: Is there a way that I can setup to
> rotate the nginx logfiles? My access.log is growing over 700MB.
Use logrotate(8) or use a shell script. Remember that you need to run
$ kill -USR1 /path/to/nginx
in order to re-open the log file.
>
> Thanks,
>
>
>
> _Danny Trinh_
>
> Linux Admin
>
> cid:image001.png at 01C9C726.FEA6D1C0
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
--
Jim Ohlstein
More information about the nginx
mailing list