Tomcat & Nginx 重启

@echo off
rem %~dpnx0%  d驱动器号 p路径 n文件名 x文件后缀名 0自身
call %~dp0%shutdown.bat
ping -n 3 127.0.0.1 > nul
call %~dp0%startup.bat

Nginx

@echo offrem Nginx.exe 需要在当前目录下被执行
cd /d C:DevOpsNginx
nginx.exe -s quit
rem taskkill /f /t /im nginx.exe
choice /t 5 /d n /m "start Nginx"
if %errorlevel%==1 start nginx.exe
原文地址:https://www.cnblogs.com/Tty725/p/12661288.html