Project

General

Profile

Feature #1996 » JKnginx.sh

放在nginx目录下 - yanwei li, 02/09/2022 11:21 AM

 
1
access=/var/log/nginx/access.log
2
error=/var/log/nginx/error.log
3
while true
4
do
5
	rm -f $access;
6
	rm -f $error;
7
	echo $(date +%F%n%T) "Delete file successfully!" >> ./JKnginx.log
8
	touch $access;
9
	touch $error;
10
	sleep 604800;
11
done
(1-1/5)