Nginx automated /tmp cleanup? -


i've installed nginx on vps

i found message inside nginx admin

to automated /tmp cleanup add bellow cron  0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client via crontab -e command 

where should execute line ?

 0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client 

my vps centos 5 32 cpanel

go console of vps , following:

 $ crontab -e 

then, in cron file (which schedules jobs using * * * * * syntax can read more on wikipedia) enter line:

0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client 

this execute command tmpwatch every hour, on hour.

tmpwatch remove files modified file time greater 1 hour in /tmp/nginx_client directory.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -