Spiga

nginx 截断日志一个批处理

2011-02-22 15:34 by 无常, 145 visits, 收藏, 编辑
net stop nginx
taskkill /F /IM nginx.exe
set "cmdstr=rename logs logs%date:~0,4%-%date:~5,2%-%date:~8,2%-%time:~0,2%-%time:~3,2%.log"

call %cmdstr%
set "cmdstr=md logs "

call %cmdstr% 

net start nginx
#pause
Add your comment

1 条回复

  1. #1楼 hlyue88      2011-12-19 15:38
      阿斯达斯的
     回复 引用 查看   
Locations of visitors to this page