set install_path=%~dp0 cd /d %install_path% cd ../nginx echo "开始停止前台服务nginx......." nginx -s stop taskkill /F /IM nginx.exe cd ../ echo "开始停止后台服务......." wmic process where "CommandLine Like '%%EMS_NEW-0.0.1-SNAPSHOT.war%%' and name='java.exe'" call terminate cd %~dp0