重构代理池系统:简化架构并增强核心功能
后端变更: - 移除 tasks_manager.py 和 core/auth.py,简化架构 - 新增 core/scheduler.py 验证调度器,替代原有任务管理 - 大幅优化 api_server.py:统一错误处理、增强参数验证、支持调度器控制 - validator.py 增强 SOCKS4/SOCKS5 代理验证支持 - config.py 清理废弃配置(WebSocket、API Key、认证开关) - SQLite 数据库操作性能优化 前端变更: - 移除任务管理页面 (CrawlerTasks) 和 WebSocket 相关代码 - 路由简化为 4 个核心页面:总览、代理列表、插件管理、设置 - 提取前端工具函数(clipboard、confirm、format)和 API 类型定义 - 优化 CSS 架构:完善 variables、utilities、element-plus 样式 - Dashboard、Plugins、ProxyList、Settings 页面 UI/UX 优化 - App.vue 响应式侧边栏和页面过渡动画优化 其他: - 移除 PowerShell 启动脚本,简化 Windows 批处理脚本 - 新增 README_SOCKS.md SOCKS 代理支持文档 - .env.example 和 .gitignore 更新
This commit is contained in:
@@ -1,8 +1,41 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
setlocal
|
||||
cd /d %~dp0
|
||||
echo === Stopping ProxyPool Services ===
|
||||
echo.
|
||||
|
||||
powershell -ExecutionPolicy Bypass -File stop.ps1
|
||||
set "BACKEND_PORT=9949"
|
||||
set "FRONTEND_PORT=9948"
|
||||
set "STOPPED_COUNT=0"
|
||||
|
||||
echo [1/2] Stopping processes on ports %BACKEND_PORT% and %FRONTEND_PORT%...
|
||||
|
||||
REM Stop backend port
|
||||
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":%BACKEND_PORT%" ^| findstr "LISTENING"') do (
|
||||
for /f "tokens=1" %%b in ('tasklist /FI "PID eq %%a" ^| findstr "%%a"') do (
|
||||
taskkill /F /PID %%a >nul 2>&1
|
||||
echo Stopped port %BACKEND_PORT% (PID: %%a, Process: %%b)
|
||||
set /a STOPPED_COUNT+=1
|
||||
)
|
||||
)
|
||||
|
||||
REM Stop frontend port
|
||||
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":%FRONTEND_PORT%" ^| findstr "LISTENING"') do (
|
||||
for /f "tokens=1" %%b in ('tasklist /FI "PID eq %%a" ^| findstr "%%a"') do (
|
||||
taskkill /F /PID %%a >nul 2>&1
|
||||
echo Stopped port %FRONTEND_PORT% (PID: %%a, Process: %%b)
|
||||
set /a STOPPED_COUNT+=1
|
||||
)
|
||||
)
|
||||
|
||||
echo Stopped %STOPPED_COUNT% process(es)
|
||||
echo.
|
||||
|
||||
echo [2/2] Waiting for processes to fully stop...
|
||||
timeout /t 2 /nobreak >nul
|
||||
|
||||
echo.
|
||||
echo === Done ===
|
||||
echo All services have been stopped.
|
||||
echo.
|
||||
|
||||
pause
|
||||
|
||||
Reference in New Issue
Block a user