windows nginx日志切割
@echooff
ifnotexist"C:\nginx"gotodpan
setnginxpath=C:\nginx
setnd=C:
gotostart
:dpan
ifnotexist"D:\nginx"gotoepan
setnginxpath=D:\nginx
setnd=D:
gotostart
:epan
ifnotexist"E:\nginx"gotofpan
setnginxpath=E:\nginx
setnd=E:
gotostart
:fpan
ifnotexist"F:\nginx"gotofpan
setnginxpath=F:\nginx
setnd=F:
gotostart
:start
setnlog=%nginxpath%\logs
setnlogbak=%nginxpath%\logbak
ifnotexist%nlogbak%mkdir%nlogbak%
%nd%
cd%nginxpath%
setcmdstr=move%nlog%\access.log%nlogbak%\access%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.log
taskkill/F/IMnginx.exe
call%cmdstr%
startnginx
相关推荐
nginxs 2020-11-14
Guanjs0 2020-11-13
小木兮子 2020-11-11
yserver 2020-11-11
ssihc0 2020-11-11
windle 2020-11-10
HanksWang 2020-11-10
liuchen0 2020-11-10
Freshairx 2020-11-10
ccschan 2020-11-10
liwf 2020-11-10
Guanjs0 2020-11-09
AderStep 2020-11-09
zrtlin 2020-11-09
mqfcu 2020-11-10
windle 2020-10-29