本文作者:不许人间见白头

nginx切割脚本windows的

不许人间见白头 2个月前 ( 12-16 ) 89
@ECHO OFFset y=%date:~0,4%%date:~5,2%%date:~8,2%
taskkill /F /IM nginx.exeecho %y% "杀死nginx完成" >>d:/logs/jilu.log
d:
cd D:\logs\nginx
md %y%
c:
cd C:\nginx
move logs\access.log D:\logs\nginx/%y%/ >>d:/logs/jilu.logecho %y% "移动了nginx-access.log" >>d:/logs/jilu.log
d:
cd D:\logs\nginx2
md %y%
c:
cd C:\nginx2
move logs\access.log D:\logs\nginx2/%y%/ >>d:/logs/jilu.logecho %y% "移动了nginx2-access.log" >>d:/logs/jilu.log
d:
cd D:\logs\nginx3
md %y%
c:
cd C:\nginx3
move logs\access.log D:\logs\nginx20110%y%/ >>d:/logs/jilu.logecho %y% "移动了nginx3access.log" >>d:/logs/jilu.log
d:
cd D:\logs\nginx20110
md %y%
c:
cd C:\nginx20110
move logs\access.log D:\logs\nginx20110/%y%/ >>d:/logs/jilu.logecho %y% "移动了nginx20110-access.log" >>d:/logs/jilu.log
call C:\nginx\start_.bat
call C:\nginx2\start_.bat
call C:\nginx3\start_.bat
call C:\nginx20120\start_.bat


文章版权及转载声明

作者:不许人间见白头本文地址:https://www.ahaoyw.com/article/236.html发布于 2个月前 ( 12-16 )
文章转载或复制请以超链接形式并注明出处阿豪运维笔记

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏