| 方式 | 说明 | 典型命令 |
| 自启动(守护进程) | 由系统在登录/开机时加载并监管,Gateway 常驻后台;日志由 launchd/systemd 重定向到文件。 | openclaw gateway install 安装后,由系统自动拉起;日常用 start/stop/restart 控制。 |
| 手动启动(前台) | 在当前终端运行,关掉终端或 Ctrl+C 即退出;不依赖 plist/systemd。 | openclaw gateway 或 openclaw gateway --port 18789 |
| 配置 | 是什么 | 改完之后要做什么 |
| 应用配置 | openclaw.json(插件、渠道、网关端口、认证等) | 重启 Gateway 进程即可(openclaw gateway restart),不需要重新执行 gateway install。 |
| 服务配置 | macOS:~/Library/LaunchAgents/ai.openclaw.gateway.plist Linux:~/.config/systemd/user/openclaw-gateway.service | 改的是由谁、在什么环境下启动 Gateway。见下文「何时需要重新 install / daemon-reload」。 |
| 欢迎光临 AI创想 (https://llms-ai.com/) | Powered by Discuz! X3.4 |