Files
AI_A4000/video_worker/edge_node/README.md
2026-04-07 17:01:13 +08:00

45 lines
789 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Edge Node Project
边缘设备独立项目目录(主动连接中心 WS接收任务和运维指令
安全边界:
- 边缘仅主动连接中心(`DISPATCH_WS_URL`
- 边缘不提供外网入口Worker 固定绑定 `127.0.0.1`
## Linux / WSL
```bash
cd edge_node
bash scripts/start.sh
```
停止与重启:
```bash
bash scripts/stop.sh
bash scripts/restart.sh
```
## Windows PowerShell (WSL)
```powershell
cd edge_node
.\scripts\wsl.ps1 -Action start
```
常用:
```powershell
.\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`