平时做技术实践时,很多问题不是概念不会,而是细节没串起来。拿“解决OpenClaw启动后web控制面板无法登录返回信息:Not Fou……”来说,它看着像小点,放到项目里常会牵出环境、配置、兼容性和维护成本。下面按实际使用顺序,把思路、关键写法和容易踩坑的地方讲清楚,方便你直接对照操作。
结合项目来看,在1.19这台服务器安装了OpenClaw,不管用浏览器,还是直接采用curl,都是得到信息:Not Found
但是1.12这台服务器就没有问题...
curl (链接已移除)
Not Found
查看绑定情况
openclaw config get gateway.bind ? OpenClaw 2026.3.2 (85377a2) — I'm not saying your workflow is chaotic... I'm just bringing a linter and a helmet. loopback
绑定到lan
打开网络连通
openclaw config set gateway.bind lan
重启gateway
openclaw gateway restart
设备列表和配对
设置设备对
openclaw devices list
批准
openclaw devices approve
不管用
看npm版本
npm -v 11.3.0
升级到11.11
npm install -g [email protected]
然后重新build
没有用npmp安装
pnpm store prune rm -rf node_modules # 重新安装依赖并构建 pnpm install
而是用npm重新安装
npm i -g openclaw openclaw onboard
问题照旧。
尝试删除OpenClaw然后重装
先删除
openclaw uninstall
删除完毕:
openclaw uninstall ? OpenClaw 2026.3.2 (85377a2) — Your task has been queued; your dignity has been deprecated. │ ◇ Uninstall which components? │ Gateway service, State + config, Workspace │ ◇ Proceed with uninstall? │ Yes Stopped systemd service: openclaw-gateway.service Removed systemd service: /home/skywalk/.config/systemd/user/openclaw-gateway.service Removed ~/.openclaw Removed ~/.openclaw/workspace CLI still installed. Remove via npm/pnpm if desired.
重新安装了一遍,问题都没解决
最后安装openclaw-cn来解决
最后是安装了openclaw-cn解决的。显示:

总结
落到代码里,总的来说,openclaw启动后not这部分内容适合结合实际项目边做边理解。先抓住核心思路,再逐步补上细节和边界处理,最后效果会更稳定,也更容易复用。
