Initialize crypto_monitor_user (user edition) from monitor codebase.

Retarget git remote, install path, and deploy docs from crypto_monitor to crypto_monitor_user.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-17 16:18:13 +08:00
commit 53863559f4
608 changed files with 162764 additions and 0 deletions
@@ -0,0 +1,42 @@
# 中控与子代理 · 后台常驻(Ubuntu)
**唯一推荐方式:PM2.**
请仅使用 PM2 托管 `hub.py``agent.py`,勿与 nohup 等方式重复启动同一端口.
---
## 启动
```bash
cd /opt/crypto_monitor_user/manual_trading_hub
source .venv/bin/activate
pip install -r requirements.txt
cp -n .env.example .env # 首次
pm2 start ecosystem.config.cjs
pm2 save
pm2 list
```
一条 `ecosystem.config.cjs` 会拉起 **4 个子代理 + 1 个 hub**.
---
## 常用命令
```bash
pm2 logs manual-trading-hub
pm2 restart manual-trading-hub
pm2 restart all
bash scripts/verify_hub_deploy.sh
```
---
## 详细说明
| 文档 | 内容 |
|------|------|
| [../部署文档.md](../部署文档.md) | 端口,反代,故障排查 |
| [../../docs/ubuntu-server.md](../../docs/ubuntu-server.md) | Python / Node / PM2 版本与三所启动顺序 |