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
Post a Comment