windows系统下服务进程的守护脚本书写
说明:
这里书写的是apache服务守护脚本书写
apache服务名称为:Apache2a
@echo off :check net start | find /c /i "Apache2a" > nul if "%errorlevel%" == "1" goto startapache goto check :startapache TASKILL /S system /f /IM httpd* net start Apache2a goto check