refactor: integrate dashboard into server.py :8899, remove standalone dashboard
This commit is contained in:
+9
-9
@@ -9,7 +9,7 @@
|
||||
| 组件 | 守护方式 | 端口 | 说明 |
|
||||
|------|---------|------|------|
|
||||
| **server.py** | systemd `mofin-api` | 8899 | 持仓情报 API(已有,不动) |
|
||||
| **dashboard.py** | systemd `mofin-dashboard` | 5807 | 管理门户(新增) |
|
||||
| **dashboard.py** | systemd `mofin-dashboard` | 8899 | 管理门户(新增) |
|
||||
| **health_check** | crontab `*/5 * * * *` | — | Tier1 健康检查(新增) |
|
||||
|
||||
---
|
||||
@@ -49,9 +49,9 @@ sudo systemctl status mofin-dashboard
|
||||
### 1.3 验证
|
||||
|
||||
```bash
|
||||
curl http://127.0.0.1:5807/api/health
|
||||
curl http://127.0.0.1:5807/api/services | python3 -m json.tool
|
||||
# 浏览器访问: http://192.168.1.246:5807
|
||||
curl http://127.0.0.1:8899/api/health
|
||||
curl http://127.0.0.1:8899/api/services | python3 -m json.tool
|
||||
# 浏览器访问: http://192.168.1.246:8899
|
||||
```
|
||||
|
||||
---
|
||||
@@ -71,18 +71,18 @@ crontab -l | grep health
|
||||
## 3. 防火墙
|
||||
|
||||
```bash
|
||||
sudo ufw status | grep -E '8899|5807'
|
||||
sudo ufw status | grep -E '8899|8899'
|
||||
# 如果未开放:
|
||||
# sudo ufw allow 5807/tcp
|
||||
# sudo ufw allow 8899/tcp
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 4. 部署后验证清单
|
||||
|
||||
- [ ] `curl http://127.0.0.1:5807/api/health` → `{"status":"ok"}`
|
||||
- [ ] `curl http://127.0.0.1:5807/api/services` → 返回 5 个服务状态
|
||||
- [ ] 浏览器打开 `http://192.168.1.246:5807` → Services Tab 显示服务状态
|
||||
- [ ] `curl http://127.0.0.1:8899/api/health` → `{"status":"ok"}`
|
||||
- [ ] `curl http://127.0.0.1:8899/api/services` → 返回 5 个服务状态
|
||||
- [ ] 浏览器打开 `http://192.168.1.246:8899` → Services Tab 显示服务状态
|
||||
- [ ] Dashboard F 健康 Tab → 定时任务状态显示正常
|
||||
- [ ] 点击各模块 ?§ 按钮 → 弹出 spec 帮助内容
|
||||
- [ ] `python3 agents_health_check.py` → 无输出(全正常)
|
||||
|
||||
Reference in New Issue
Block a user