clean nginx log

Jeff Pang jeffrpang at gmail.com
Wed May 25 10:24:40 MSD 2011


2011/5/25 Igor Sysoev <igor at sysoev.ru>:

>
> nginx uses O_APPEND flag for access log, so this trick may work.
> There is however, a more safer way:
>
> rm access.log
> kill -USR1 `cat /path/to/nginx.pid`
>
>

That's right. Thanks Igor.

-- 
Jeff Pang
www.DNSbed.com



More information about the nginx mailing list