window10的WSL2 上安装 openclaw
[ 2026-02-28 15:39:46 | 作者: admin ]
openclaw第三方中文网址:https://clawd.org.cn/
1. 安装 WSL2 和 Ubuntu
以管理员身份打开 PowerShell,执行:
# 一键安装 WSL2 和 Ubuntu(推荐方式)
wsl --install
# 或者指定安装 Ubuntu 24.04
wsl --install -d Ubuntu
验证 WSL2 版本:
更新系统并安装基础工具
进入 WSL2 Ubuntu 终端,执行:
OpenClaw 的 Gateway 服务需要 systemd 支持。检查是否已启用:
然后在 PowerShell 中重启 WSL:
安装 OpenClaw
方式一:官方一键脚本(推荐)
安装完成后验证:
常用命令
如果安装了中文镜像版,相关命令:
重启 Gateway
常用命令
openclaw-cn status 查看整体状态概览
openclaw-cn status --all 完整诊断报告(可粘贴分享)
openclaw-cn doctor 自动检测并修复问题
openclaw-cn logs --follow 实时查看日志
openclaw-cn channels status 查看消息通道状态
openclaw-cn models status 查看 AI 模型认证状态
评论Feed: http://blog.xg98.com/feed.asp?q=comment&id=3013
1. 安装 WSL2 和 Ubuntu
以管理员身份打开 PowerShell,执行:
# 一键安装 WSL2 和 Ubuntu(推荐方式)
wsl --install
# 或者指定安装 Ubuntu 24.04
wsl --install -d Ubuntu
验证 WSL2 版本:
wsl --list --verbose
更新系统并安装基础工具
进入 WSL2 Ubuntu 终端,执行:
sudo apt update && sudo apt upgrade -y
sudo apt install -y build-essential curl wget git unzip
sudo apt install -y build-essential curl wget git unzip
OpenClaw 的 Gateway 服务需要 systemd 支持。检查是否已启用:
ps --no-headers -o comm 1
然后在 PowerShell 中重启 WSL:
wsl --shutdown
安装 OpenClaw
方式一:官方一键脚本(推荐)
curl -fsSL https://openclaw.ai/install.sh | bash
方式二:国内镜像(速度更快)curl -fsSL https://clawd.org.cn/install.sh | bash
方式三:手动 npm 安装npm install -g openclaw
安装完成后验证:
openclaw --version
openclaw onboard --install-daemon
openclaw onboard --install-daemon
常用命令
# 查看 OpenClaw 状态
openclaw status
# 查看 Gateway 状态
openclaw gateway status
# 启动 Gateway(手动)
openclaw gateway run --port 18789
# 重启服务
openclaw gateway restart
# 查看日志
openclaw logs
# 启动 Web 控制台
openclaw dashboard
# 查看可用模型
openclaw models list
openclaw status
# 查看 Gateway 状态
openclaw gateway status
# 启动 Gateway(手动)
openclaw gateway run --port 18789
# 重启服务
openclaw gateway restart
# 查看日志
openclaw logs
# 启动 Web 控制台
openclaw dashboard
# 查看可用模型
openclaw models list
如果安装了中文镜像版,相关命令:
openclaw-cn --version
重启 Gateway
openclaw-cn gateway restart
常用命令
openclaw-cn status 查看整体状态概览
openclaw-cn status --all 完整诊断报告(可粘贴分享)
openclaw-cn doctor 自动检测并修复问题
openclaw-cn logs --follow 实时查看日志
openclaw-cn channels status 查看消息通道状态
openclaw-cn models status 查看 AI 模型认证状态
[最后修改由 admin, 于 2026-03-06 10:13:01]
评论Feed: http://blog.xg98.com/feed.asp?q=comment&id=3013
这篇日志没有评论。
此日志不可发表评论。






