openclaw服务器配置

开启shell读写权限

  "tools": {
    "profile": "full",
    "exec": {
      "host": "gateway",
      "security": "full",
      "ask": "off"
    }
  },

配置守护进程systemd
创建文件~/.config/systemd/user/openclaw-gateway.service

[Unit]
Description=OpenClaw Gateway
After=network-online.target
Wants=network-online.target

[Service]
ExecStart=/usr/local/bin/openclaw gateway run --port 18789
Restart=always
RestartSec=5

[Install]
WantedBy=default.target
~                        

然后进行

systemctl --user daemon-reload
systemctl --user enable --now openclaw-gateway.service
systemctl --user restart openclaw-gateway.service

之后查看运行状态

systemctl --user status openclaw-gateway.service
posted @ 2026-03-25 20:57  公众号python学习开发  阅读(46)  评论(0)    收藏  举报