杀死某个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

猜你喜欢

转载自www.cnblogs.com/feiqilai/p/12921325.html