fix: CTP 连接后 locale 崩溃,PM2 设置 LANG=C.UTF-8

vnpy_ctp C++ 扩展在缺 locale 时会 terminate;补充 SimNow 备用前置说明。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-24 11:32:20 +08:00
parent 350d0fed6b
commit f73d436077
7 changed files with 30 additions and 1 deletions
+10
View File
@@ -139,6 +139,15 @@ tcp://IP:端口
pm2 restart qihuo
```
**云服务器若 `180.168.146.187` 端口超时**,可改用备用前置(交易时段):
```env
SIMNOW_TD_ADDRESS=tcp://182.254.243.31:30001
SIMNOW_MD_ADDRESS=tcp://182.254.243.31:30011
```
服务器上用 `nc -zv 182.254.243.31 30001` 验证连通后再配置。
### 3. 网页端连接 CTP
1. 登录本系统
@@ -174,6 +183,7 @@ python scripts/test_simnow.py
| 报错 **4097** / 握手失败 | `pip install -U vnpy vnpy_ctp``.env``SIMNOW_ENV=实盘` |
| **不合法的登录** | 投资者代码/密码错,或未在快期改过一次密码 |
| 快期能登、脚本不能 | 多为网络或前置地址,换 SimNow 官网其他组前置试 |
| 连上后进程崩溃 `locale::facet::_S_create_c_locale` | 执行 `export LANG=C.UTF-8 LC_ALL=C.UTF-8``pm2 restart qihuo --update-env` |
### 提示「未安装 vnpy / vnpy_ctp」