src/process/resources/skills/openclaw-setup/references/deployment.md
这是最推荐的方式,会引导你完成所有配置:
openclaw onboard --install-daemon
向导会引导你配置:
~/.openclaw/workspace如果只想先测试,不安装服务:
openclaw gateway --port 18789 --verbose
openclaw gateway status
# macOS
launchctl list | grep openclaw
# Linux (systemd)
systemctl --user status openclaw-gateway
# 或检查端口
ss -ltnp | grep 18789 # Linux
lsof -i :18789 # macOS
# 检查服务状态
launchctl list | grep openclaw
# 启动服务
launchctl load ~/Library/LaunchAgents/com.openclaw.gateway.plist
# 或使用 OpenClaw 命令
openclaw gateway install
# 检查服务状态
systemctl --user status openclaw-gateway
# 启动服务
systemctl --user start openclaw-gateway
# 启用自动启动
systemctl --user enable openclaw-gateway
Gateway 日志位置:
~/Library/Logs/openclaw-gateway.log 或系统日志journalctl --user -u openclaw-gateway使用脚本查看 macOS 日志:
./scripts/clawlog.sh
gateway.mode=remotegateway.remote.url 和认证