杀死某个nginx进程bat

@echo off
tasklist|find /i "nginx.exe" > NUL
if %errorlevel%==0 (
%cd%/nginx -s quit
echo 服务已成功关闭...
) else (
echo 服务没有运行...
)
ping 0.0.0.0 -n 5 > NUL
exit

小人才疏学浅,看官不喜勿喷,谢谢
原文地址:https://www.cnblogs.com/feiqilai/p/12921325.html