Nginx automatically deletes log implementation methods regularly

  
                  

Nginx's log files accumulate too much and end up filling up the entire disk space, so yesterday I made a script that can be automatically deleted on a regular basis.
Code is as follows

#!/bin/bash find /usr/local/nginx/logs/-mtime +15 -type f -name *.log

Copyright © Windows knowledge All Rights Reserved