637c3bafd1
- kb/setup/2026-06-25-初始部署.md: Ollama安装、飞书配置、Gitea仓库、网络备注 - kb/ops/quickref.md: 常用运维命令速查 - kb/README.md: 知识库索引
48 lines
761 B
Markdown
48 lines
761 B
Markdown
# 运维速查 — Ops Quick Reference
|
||
|
||
## 飞书白名单管理
|
||
|
||
```bash
|
||
# 查看当前白名单
|
||
python3 -c "
|
||
import json
|
||
d = json.load(open('/root/.openclaw/openclaw.json'))
|
||
print(d['channels']['feishu']['allowFrom'])
|
||
"
|
||
|
||
# 添加用户(需要 open_id)
|
||
# 编辑 ~/.openclaw/openclaw.json → channels.feishu.allowFrom
|
||
# 添加后无需重启,配置热加载生效
|
||
```
|
||
|
||
## Git 推送
|
||
|
||
```bash
|
||
cd /root/.openclaw/workspace
|
||
git add -A
|
||
git commit -m "更新说明"
|
||
git push
|
||
```
|
||
|
||
## Ollama
|
||
|
||
```bash
|
||
# 查看模型
|
||
ollama list
|
||
|
||
# 拉取模型
|
||
ollama pull <模型名>
|
||
|
||
# 推理测试
|
||
ollama run qwen2.5:7b "你好"
|
||
```
|
||
|
||
## 系统维护
|
||
|
||
```bash
|
||
# Gateway 状态
|
||
openclaw gateway status
|
||
|
||
# 查看日志(飞书/网关)
|
||
journalctl -u openclaw --no-pager -n 50
|