☁️ 国内云服务器部署
推荐国内用户使用云服务器部署,24/7 运行,无需开机。
推荐方案
阿里云
¥68/年 起
腾讯云 Lighthouse
¥60/年 起
火山引擎
¥19/月 起
💡 推荐配置
2核 CPU + 2GB 内存 + 50GB SSD硬盘
腾讯云轻量服务器部署
# 1. 安装依赖
apt update && apt install -y nodejs npm git
# 2. 安装 OpenClaw
npm install -g openclaw
# 3. 配置 systemd 服务
cat > /etc/systemd/system/openclaw.service << 'EOF'
[Unit]
Description=OpenClaw Gateway
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/root/.openclaw/workspace
ExecStart=/usr/bin/openclaw gateway start
Restart=always
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable openclaw
systemctl start openclaw