2026-02-01 22:47:44 +01:00
|
|
|
|
---
|
|
|
|
|
|
read_when:
|
2026-02-03 13:23:00 -08:00
|
|
|
|
- 查找 Linux 配套应用状态时
|
|
|
|
|
|
- 规划平台覆盖或贡献时
|
|
|
|
|
|
summary: Linux 支持 + 配套应用状态
|
2026-02-01 22:47:44 +01:00
|
|
|
|
title: Linux 应用
|
|
|
|
|
|
x-i18n:
|
2026-02-03 13:23:00 -08:00
|
|
|
|
generated_at: "2026-02-03T07:52:18Z"
|
2026-02-01 22:47:44 +01:00
|
|
|
|
model: claude-opus-4-5
|
|
|
|
|
|
provider: pi
|
|
|
|
|
|
source_hash: a9bbbcecf2fd522a2f5ac8f3b9068febbc43658465bfb9276bff6c3e946789d2
|
|
|
|
|
|
source_path: platforms/linux.md
|
|
|
|
|
|
workflow: 15
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
# Linux 应用
|
|
|
|
|
|
|
2026-02-03 13:23:00 -08:00
|
|
|
|
Gateway 网关在 Linux 上完全支持。**Node 是推荐的运行时**。
|
|
|
|
|
|
不推荐 Bun 用于 Gateway 网关(WhatsApp/Telegram 存在 bug)。
|
2026-02-01 22:47:44 +01:00
|
|
|
|
|
2026-02-03 13:23:00 -08:00
|
|
|
|
原生 Linux 配套应用已在计划中。如果你想帮助构建,欢迎贡献。
|
2026-02-01 22:47:44 +01:00
|
|
|
|
|
|
|
|
|
|
## 新手快速路径(VPS)
|
|
|
|
|
|
|
|
|
|
|
|
1. 安装 Node 22+
|
|
|
|
|
|
2. `npm i -g openclaw@latest`
|
|
|
|
|
|
3. `openclaw onboard --install-daemon`
|
2026-02-02 15:46:45 +01:00
|
|
|
|
4. 从你的笔记本电脑:`ssh -N -L 18789:127.0.0.1:18789 <user>@<host>`
|
|
|
|
|
|
5. 打开 `http://127.0.0.1:18789/` 并粘贴你的令牌
|
2026-02-01 22:47:44 +01:00
|
|
|
|
|
2026-02-05 17:45:01 -05:00
|
|
|
|
分步 VPS 指南:[exe.dev](/install/exe-dev)
|
2026-02-01 22:47:44 +01:00
|
|
|
|
|
|
|
|
|
|
## 安装
|
|
|
|
|
|
|
2026-02-03 13:23:00 -08:00
|
|
|
|
- [入门指南](/start/getting-started)
|
2026-02-01 22:47:44 +01:00
|
|
|
|
- [安装与更新](/install/updating)
|
|
|
|
|
|
- 可选流程:[Bun(实验性)](/install/bun)、[Nix](/install/nix)、[Docker](/install/docker)
|
|
|
|
|
|
|
2026-02-03 13:23:00 -08:00
|
|
|
|
## Gateway 网关
|
2026-02-01 22:47:44 +01:00
|
|
|
|
|
2026-02-03 13:23:00 -08:00
|
|
|
|
- [Gateway 网关运行手册](/gateway)
|
2026-02-01 22:47:44 +01:00
|
|
|
|
- [配置](/gateway/configuration)
|
|
|
|
|
|
|
2026-02-03 13:23:00 -08:00
|
|
|
|
## Gateway 网关服务安装(CLI)
|
2026-02-01 22:47:44 +01:00
|
|
|
|
|
|
|
|
|
|
使用以下任一方式:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
openclaw onboard --install-daemon
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
或:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
openclaw gateway install
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
或:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
openclaw configure
|
|
|
|
|
|
```
|
|
|
|
|
|
|
2026-02-03 13:23:00 -08:00
|
|
|
|
出现提示时选择 **Gateway service**。
|
2026-02-01 22:47:44 +01:00
|
|
|
|
|
|
|
|
|
|
修复/迁移:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
openclaw doctor
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## 系统控制(systemd 用户单元)
|
|
|
|
|
|
|
2026-02-03 13:23:00 -08:00
|
|
|
|
OpenClaw 默认安装 systemd **用户**服务。对于共享或常驻服务器使用**系统**
|
|
|
|
|
|
服务。完整的单元示例和指南
|
|
|
|
|
|
在 [Gateway 网关运行手册](/gateway) 中。
|
2026-02-01 22:47:44 +01:00
|
|
|
|
|
2026-02-03 13:23:00 -08:00
|
|
|
|
最小设置:
|
2026-02-01 22:47:44 +01:00
|
|
|
|
|
|
|
|
|
|
创建 `~/.config/systemd/user/openclaw-gateway[-<profile>].service`:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
[Unit]
|
2026-02-03 13:23:00 -08:00
|
|
|
|
Description=OpenClaw Gateway (profile: <profile>, v<version>)
|
2026-02-01 22:47:44 +01:00
|
|
|
|
After=network-online.target
|
|
|
|
|
|
Wants=network-online.target
|
|
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
|
ExecStart=/usr/local/bin/openclaw gateway --port 18789
|
|
|
|
|
|
Restart=always
|
|
|
|
|
|
RestartSec=5
|
|
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
|
WantedBy=default.target
|
|
|
|
|
|
```
|
|
|
|
|
|
|
2026-02-03 13:23:00 -08:00
|
|
|
|
启用它:
|
2026-02-01 22:47:44 +01:00
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
systemctl --user enable --now openclaw-gateway[-<profile>].service
|
|
|
|
|
|
```
|