增加说明

This commit is contained in:
dekun
2026-05-13 02:04:26 +08:00
parent c14c74cf14
commit 8290bbc060
7 changed files with 151 additions and 51 deletions
+10 -10
View File
@@ -28,13 +28,13 @@
将包含 `app.py` 的项目放到固定目录,例如:
```bash
mkdir -p ~/apps
cd ~/apps
mkdir -p /opt/crypto_monitor
cd /opt/crypto_monitor
# git clone ... 或解压同步的包
cd crypto_monitor_binance
```
下文用 **`/root/crypto_monitor_binance`** 仅为示例,请换成你的实际绝对路径。
下文用 **`/opt/crypto_monitor/crypto_monitor_binance`** 仅为示例,请换成你的实际绝对路径。
---
@@ -94,7 +94,7 @@ curl -4 -sS --max-time 15 --proxy socks5h://127.0.0.1:1080 https://api.binance.c
## 4. Python 虚拟环境
```bash
cd /root/crypto_monitor_binance
cd /opt/crypto_monitor/crypto_monitor_binance
python3 -m venv .venv
source .venv/bin/activate
@@ -155,7 +155,7 @@ BINANCE_SOCKS_PROXY=socks5h://127.0.0.1:1080
在已配置 `.env` 且网络可达的前提下:
```bash
cd /root/crypto_monitor_binance
cd /opt/crypto_monitor/crypto_monitor_binance
source .venv/bin/activate
python scripts/verify_binance_funding.py
```
@@ -171,7 +171,7 @@ python scripts/verify_binance_funding.py
3. `.env` 已按需配置 `BINANCE_SOCKS_PROXY`
```bash
cd /root/crypto_monitor_binance
cd /opt/crypto_monitor/crypto_monitor_binance
source .venv/bin/activate
python app.py
```
@@ -194,7 +194,7 @@ pm2 -v
在项目根目录:
```bash
cd /root/crypto_monitor_binance
cd /opt/crypto_monitor/crypto_monitor_binance
pm2 start ecosystem.config.cjs
pm2 status
pm2 logs --lines 200
@@ -231,9 +231,9 @@ ssh -N -D 127.0.0.1:1080 bn-vps \
### 10.2 Flask
```bash
cd /root/crypto_monitor_binance
pm2 start /root/crypto_monitor_binance/.venv/bin/python --name crypto-monitor-binance -- \
/root/crypto_monitor_binance/app.py
cd /opt/crypto_monitor/crypto_monitor_binance
pm2 start /opt/crypto_monitor/crypto_monitor_binance/.venv/bin/python --name crypto-monitor-binance -- \
/opt/crypto_monitor/crypto_monitor_binance/app.py
```
---