7
Service:OpenClaw
Jeffery edited this page 2026-07-28 15:59:39 +00:00

更新系統套件

apt update && apt upgrade -y && apt install -y curl wget git unzip

安裝 NodeJS

curl -fsSL https://nodesource.com | bash -
apt install -y nodejs

安裝 OpenClaw

curl -fsSL https://openclaw.ai/install.sh | bash

驗證 OpenClaw 版本

openclaw version

初始化 OpenClaw 系統

openclaw onboard --install-daemon

啟動 OpenClaw 服務

sudo loginctl enable-linger $USER
openclaw gateway status --port 18789

設定 OpenClaw 密碼

echo "$(openssl rand -hex 32)" > openclaw-token
openclaw config set gateway.auth.token "$(cat openclaw-token)"