Files
2026-04-07 17:01:13 +08:00
..
2026-04-07 17:01:13 +08:00
2026-04-07 17:01:13 +08:00
2026-04-07 17:01:13 +08:00

Edge Node Project

边缘设备独立项目目录(主动连接中心 WS接收任务和运维指令

安全边界:

  • 边缘仅主动连接中心(DISPATCH_WS_URL
  • 边缘不提供外网入口Worker 固定绑定 127.0.0.1

Linux / WSL

cd edge_node
bash scripts/start.sh

停止与重启:

bash scripts/stop.sh
bash scripts/restart.sh

Windows PowerShell (WSL)

cd edge_node
.\scripts\wsl.ps1 -Action start

常用:

.\scripts\wsl.ps1 -Action status
.\scripts\wsl.ps1 -Action restart
.\scripts\wsl.ps1 -Action stop

Config

首次启动会生成 edge_node/.env。请至少设置:

  • DISPATCH_WS_URL=ws://<center-host>:8060/ws/edge/<device-id>
  • WORKER_BASE_URL=http://127.0.0.1:8000