openclaw gateway status
查看 Gateway 服务状态
openclaw gateway start
启动 Gateway 服务
openclaw gateway stop
停止 Gateway 服务
openclaw gateway restart
重启 Gateway 服务
openclaw sessions list
列出所有会话
openclaw sessions history <sessionKey>
查看指定会话的历史记录
openclaw status
查看当前会话状态(模型使用、时间、成本等)
openclaw sessions
查看所有会话
openclaw sessions --active 120
只看最近 2 小时的活跃会话
openclaw sessions --all-agents
查看所有 agent 的会话
openclaw sessions --agent daily-agent
查看指定 agent 的会话
openclaw sessions --json
JSON 格式输出
openclaw sessions history agent:main:main
查看会话历史(需要 session key)
openclaw sessions history agent:main:main --limit 50
查看最近 50 条消息
openclaw sessions delete <session-key>
删除指定会话
openclaw sessions cleanup
清理过期会话
openclaw cron list
查看定时任务
openclaw cron runs --id <任务 ID>
查看运行历史
openclaw cron run <任务 ID>
手动运行任务
openclaw cron rm <任务 ID>
删除任务
openclaw cron disable <任务 ID>
暂停任务
openclaw cron enable <任务 ID>
启用任务
clawhub search <keyword>
搜索 ClawHub 上的技能
clawhub install <skill-name>
安装技能
clawhub update <skill-name>
更新技能
clawhub publish <skill-folder>
发布新技能到 ClawHub
openclaw help
查看帮助信息
openclaw gateway --help
查看 Gateway 子命令帮助
sudo systemctl start nginx
启动 Nginx 服务
sudo systemctl stop nginx
停止 Nginx 服务
sudo systemctl restart nginx
重启 Nginx 服务
sudo systemctl reload nginx
重新加载配置(不中断服务)
sudo systemctl status nginx
查看 Nginx 服务状态
sudo nginx -t
测试配置文件语法是否正确
sudo nginx -s reload
平滑重新加载配置
sudo nginx -s quit
优雅地停止 Nginx(完成当前请求后停止)
sudo nginx -s stop
立即停止 Nginx
sudo tail -f /var/log/nginx/access.log
实时查看访问日志
sudo tail -f /var/log/nginx/error.log
实时查看错误日志
sudo journalctl -u nginx -f
使用 journalctl 查看 Nginx 日志
/etc/nginx/nginx.conf
主配置文件
/etc/nginx/sites-available/
站点配置文件目录
/etc/nginx/sites-enabled/
已启用的站点配置(符号链接)
ssh user@hostname
基本 SSH 连接(user 替换为用户名,hostname 替换为服务器 IP 或域名)
ssh -p 2222 user@hostname
指定端口连接(示例使用 2222 端口)
ssh -i ~/.ssh/id_rsa user@hostname
使用指定密钥文件连接
ssh user@hostname
第一步:SSH 登录服务器
openclaw status
第二步:在服务器上查看 OpenClaw 状态
openclaw gateway restart
第三步:在服务器上重启 OpenClaw Gateway
ssh -C user@hostname
启用压缩传输
ssh -L 8080:localhost:80 user@hostname
本地端口转发(将本地 8080 转发到服务器 80)
ssh-copy-id user@hostname
复制公钥到服务器(实现免密登录)
~/.ssh/config
SSH 配置文件位置,可以配置快捷连接
Host myserver
HostName 192.168.1.100
User admin
Port 2222
IdentityFile ~/.ssh/id_rsa
配置示例:之后可以用 ssh myserver 快速连接
< 和 > 表示需要替换为实际值,使用时请去掉尖括号。点击任意命令卡片可快速复制命令到剪贴板。
© 2024 比奇堡科技公司 · 版权所有