21 lines
680 B
Batchfile
21 lines
680 B
Batchfile
@echo off
|
|
echo Killing processes on port 3015...
|
|
for /f "tokens=5" %%a in ('netstat -ano ^| findstr :3015 ^| findstr LISTENING') do (
|
|
echo Killing PID %%a
|
|
taskkill /F /PID %%a 2>nul
|
|
)
|
|
|
|
rem Also kill any python process that might be running the server (optional)
|
|
rem for /f "tokens=2" %%a in ('tasklist /fi "imagename eq python.exe" /fo csv ^| findstr /i start_server') do (
|
|
rem echo Killing python process %%a
|
|
rem taskkill /F /PID %%~a 2>nul
|
|
rem )
|
|
|
|
echo Killing lightrag-server.exe if exists...
|
|
taskkill /F /IM lightrag-server.exe 2>nul
|
|
|
|
rem Additional safety: kill any process named "uvicorn" (if using uvicorn)
|
|
taskkill /F /IM uvicorn.exe 2>nul
|
|
|
|
echo Done.
|
|
pause |