远程与运维(按官方 Gateway Runbook)
日常运维核心命令
bash
openclaw gateway status
openclaw gateway status --deep
openclaw status
openclaw logs --follow
openclaw doctor
openclaw channels status --probe参考:
- https://docs.openclaw.ai/gateway/index.md
- https://docs.openclaw.ai/gateway/troubleshooting.md
- https://docs.openclaw.ai/gateway/remote.md
远程接入推荐顺序
- Tailscale / VPN
- SSH 隧道
- 公网暴露(仅在完善鉴权与代理策略后)
SSH 隧道示例:
bash
ssh -N -L 18789:127.0.0.1:18789 user@hostDay-2 运维节奏
- 每日:查看
status、错误日志、渠道健康 - 每周:回放失败样本,优化工具权限
- 每次升级后:执行完整冒烟与回滚演练
故障分级处理建议
- P0:网关不可用/全渠道中断,先恢复可用性
- P1:单渠道故障,做降级并切换备用渠道
- P2:单能力故障(特定工具/插件),定向回滚
