Linux
Linux 平台支持。
安装
bash
curl -fsSL https://openclaw.bot/install.sh | bash
openclaw onboard --install-daemon要求
- Node.js >= 22
- systemd(服务管理)
服务管理
使用 systemd 用户服务:
bash
# 安装服务
openclaw gateway install
# 启动
openclaw gateway start
# 停止
openclaw gateway stop
# 重启
openclaw gateway restart
# 查看日志
journalctl --user -u openclaw -f无头浏览器
VPS 上运行浏览器:
json
{
"browser": {
"headless": true
}
}可能需要安装依赖:
bash
# Debian/Ubuntu
sudo apt install chromium-browser
# 或使用 Playwright 依赖
npx playwright install-deps常见发行版
Ubuntu/Debian
bash
# 安装 Node.js 22
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs
# 安装 OpenClaw
curl -fsSL https://openclaw.bot/install.sh | bashArch Linux
bash
# 安装 Node.js
sudo pacman -S nodejs npm
# 安装 OpenClaw
curl -fsSL https://openclaw.bot/install.sh | bash