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

posted @ 2020-05-20 08:18  LoveMe7788  阅读(467)  评论(0编辑  收藏  举报