- Complete knowledge base list and detail pages - Complete document upload component - Fix CORS config (add PUT/DELETE method support) - Fix file upload issues (disabled state and beforeUpload return value) - Add detailed debug logs (cleaned up) - Create Day 21-22 completion summary document
54 lines
1.1 KiB
Batchfile
54 lines
1.1 KiB
Batchfile
@echo off
|
||
chcp 65001 >nul
|
||
echo ========================================
|
||
echo 查看端口占用情况
|
||
echo ========================================
|
||
echo.
|
||
|
||
echo [端口 3001 - 后端服务]
|
||
netstat -ano | findstr :3001
|
||
if errorlevel 1 (
|
||
echo ✅ 端口3001空闲
|
||
) else (
|
||
echo ⚠️ 端口3001已被占用
|
||
echo.
|
||
echo 占用进程详情:
|
||
for /f "tokens=5" %%a in ('netstat -aon ^| findstr :3001 ^| findstr LISTENING') do (
|
||
tasklist | findstr %%a
|
||
)
|
||
)
|
||
|
||
echo.
|
||
echo [端口 3000 - 前端服务]
|
||
netstat -ano | findstr :3000
|
||
if errorlevel 1 (
|
||
echo ✅ 端口3000空闲
|
||
) else (
|
||
echo ⚠️ 端口3000已被占用
|
||
echo.
|
||
echo 占用进程详情:
|
||
for /f "tokens=5" %%a in ('netstat -aon ^| findstr :3000 ^| findstr LISTENING') do (
|
||
tasklist | findstr %%a
|
||
)
|
||
)
|
||
|
||
echo.
|
||
echo [所有Node.js进程]
|
||
tasklist | findstr node.exe
|
||
if errorlevel 1 (
|
||
echo ℹ️ 没有运行中的Node进程
|
||
)
|
||
|
||
echo.
|
||
echo ========================================
|
||
echo 检查完成
|
||
echo ========================================
|
||
echo.
|
||
echo 如需停止服务,请运行: 停止所有服务.bat
|
||
echo.
|
||
pause
|
||
|
||
|
||
|
||
|