当前位置:首页>Linux>Linux 怎么部署openclaw

Linux 怎么部署openclaw

  • 2026-09-02 20:34:49
Linux 怎么部署openclaw

最近openclaw火爆得不行,想自己部署的可以看过来。我使用的是腾讯云轻量级应用服务器,系统版本建议是:Ubuntu Server 24.04 LTS 64bit。

安装openclaw需要提前安装:git、node(版本大于22)

1. 连接服务器

通过SSH连接到您的服务器(IP: 118.126.91.8)

2. 环境检测

# 检查内存(必须 >= 1GB,推荐 >= 2GB)free -h# 检查磁盘空间(必须 >= 2GB)df -h# 检查Node.js版本node --version

3. 安装依赖

安装Git:

sudo apt-get update && sudo apt-get install -y git

安装Node.js(使用nvm):

# 安装nvmcurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bashsource ~/.bashrc# 安装Node.js 22nvm install 22nvm use 22# 验证node --version  # 应显示 v22.x.x

安装yarn:

npm install -g yarn

4. 安装OpenClaw

配置国内镜像(推荐):

yarn config set registry https://mirrors.cloud.tencent.com/npm/git config --global url."https://gitclone.com/github.com/".insteadOf "https://github.com/"

安装OpenClaw:

yarn global add openclaw@latest --non-interactive --ignore-engines

添加到PATH:

YARN_BIN=$(yarn global bin)echo "export PATH=\"$YARN_BIN:\$PATH\"" >> ~/.bashrcsource ~/.bashrc

验证安装:

openclaw --version

5. 运行配置向导

openclaw onboard --install-daemon

6. 安装插件(可选)

# 安装飞书插件openclaw plugins install feishu# 安装QQ插件openclaw plugins install qq# 安装钉钉插件openclaw plugins install dingtalk# 安装企业微信插件openclaw plugins install wecom

7. 查看已安装插件

openclaw plugins list
部署完成后,建议查看完整实践指南: 云上OpenClaw(Clawdbot)最全实践教程合辑。
欢迎评论区一起讨论,一起进步。

最新文章

随机文章