stop-all.bat
992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@echo off
chcp 65001 >nul
title LLM Call Platform - Stop All Services
echo ========================================
echo LLM Call Platform - Stopping Services
echo ========================================
echo.
:: 1. Frontend (Vite / Node)
echo [1/4] Stopping Frontend (Vite) ...
taskkill /f /fi "WINDOWTITLE eq Frontend" /t >nul 2>&1
:: 2. Backend (Uvicorn)
echo [2/4] Stopping Backend (Uvicorn) ...
taskkill /f /fi "WINDOWTITLE eq Backend" /t >nul 2>&1
:: 3. Celery Worker
echo [3/4] Stopping Celery Worker ...
taskkill /f /fi "WINDOWTITLE eq Celery" /t >nul 2>&1
:: 4. Redis
echo [4/4] Stopping Redis ...
taskkill /f /fi "WINDOWTITLE eq Redis" /t >nul 2>&1
:: 后备:清理残留进程
taskkill /f /im uvicorn.exe >nul 2>&1
taskkill /f /im node.exe >nul 2>&1
taskkill /f /im python.exe >nul 2>&1
taskkill /f /im redis-server.exe >nul 2>&1
echo.
echo ========================================
echo All services stopped!
echo ========================================
echo.
pause