windows bat脚本守护java进程
作者:互联网
1、
INTERVAL=1800
30分钟重启java程序
@echo off
set INTERVAL=1800
start /min "发送到redis" java -jar C:/Users/Administrator/Desktop/桌面文件/redis发送/videoSDK.jar
timeout %INTERVAL%
:Again
echo start server
taskkill /f /fi "windowtitle eq 发送到redis"
Start /min "发送到redis" java -jar C:/Users/Administrator/Desktop/桌面文件/redis发送/videoSDK.jar
timeout %INTERVAL%
goto Again
标签:Again,bat,java,发送到,windows,jar,redis,INTERVAL% 来源: https://www.cnblogs.com/kikyoqiang/p/14934580.html