Skip to content

Commit 0ed1f63

Browse files
committed
docs: 命令参考补充 relay check,故障排查增加链路检测步骤
1 parent 94479eb commit 0ed1f63

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ docker compose up -d
270270
| `cftunnel relay list` | 列出所有规则 |
271271
| `cftunnel relay up / down` | 启停 frpc |
272272
| `cftunnel relay status` | 查看连接状态 |
273+
| `cftunnel relay check [规则名]` | 检测链路连通性和延迟 |
273274
| `cftunnel relay logs [-f]` | 查看日志 |
274275
| `cftunnel relay install / uninstall` | 注册/卸载系统服务 |
275276
| `cftunnel relay server install` | 安装 frps 服务端(仅 Linux) |
@@ -354,10 +355,11 @@ relay:
354355
**现象:** `relay up` 后 `relay status` 显示未连接
355356

356357
**排查步骤:**
357-
1. 确认服务器 frps 在运行:`ssh 服务器 "systemctl status frps"`
358-
2. 确认防火墙放行 7000 端口
359-
3. 确认 token 一致:`cftunnel relay status` 查看服务器地址和 token
360-
4. 查看日志:`cftunnel relay logs -f`
358+
1. 一键检测链路:`cftunnel relay check`(检测服务器、本地服务、远程端口连通性)
359+
2. 确认服务器 frps 在运行:`ssh 服务器 "systemctl status frps"`
360+
3. 确认防火墙放行 7000 端口
361+
4. 确认 token 一致:`cftunnel relay status` 查看服务器地址和 token
362+
5. 查看日志:`cftunnel relay logs -f`
361363

362364
<p align="right"><a href="#cftunnel">⬆ 回到顶部</a></p>
363365

0 commit comments

Comments
 (0)