« OpenClaw » : différence entre les versions
De Le Wiki de Lug
Autres actions
| Ligne 46 : | Ligne 46 : | ||
Type=simple | Type=simple | ||
User=openclaw | User=openclaw | ||
Group=openclaw | |||
WorkingDirectory=/opt/openclaw | WorkingDirectory=/opt/openclaw | ||
ExecStart=/usr/bin/openclaw | Environment=HOME=/opt/openclaw | ||
Environment=NODE_ENV=production | |||
ExecStart=/usr/local/bin/openclaw gateway | |||
Restart=always | Restart=always | ||
RestartSec=3 | RestartSec=3 | ||
[Install] | [Install] | ||
| Ligne 58 : | Ligne 60 : | ||
# systemctl daemon-reload | # systemctl daemon-reload | ||
# systemctl enable --now openclaw | # systemctl enable --now openclaw | ||
== Mise à jour de OpenClaw == | == Mise à jour de OpenClaw == | ||
Mettre à jour OpenClaw : | Mettre à jour OpenClaw : | ||
Version du 17 avril 2026 à 17:34
Prérequis
- RAM :
- 1 Go → minimum
- 2 Go → recommandé
- CPU / vCPU :
- 1 vCPU → suffisant
- 2 vCPU → recommandé
- Espace disque :
- 5 Go → minimum
- 10 Go → confortable
- GPU :
- Inutile
Installation OpenClaw (service dédié)
Installation (Debian)
# apt update && apt upgrade -y # apt install -y curl ca-certificates gnupg sudo # curl -fsSL https://deb.nodesource.com/setup_24.x | bash - # apt install -y nodejs
Installer OpenClaw globalement :
# npm install -g openclaw@latest
Création de l'utilisateur
Créer un utilisateur dédié sans accès shell :
# useradd -r -m -d /opt/openclaw -s /usr/sbin/nologin openclaw
Créer le dossier de travail :
# mkdir -p /opt/openclaw # chown -R openclaw:openclaw /opt/openclaw
Création des fichiers de configuration
# sudo -u openclaw HOME=/opt/openclaw /usr/local/bin/openclaw setup
Service systemd
Créer le service :
# nano /etc/systemd/system/openclaw.service
Contenu :
[Unit] Description=OpenClaw After=network-online.target Wants=network-online.target [Service] Type=simple User=openclaw Group=openclaw WorkingDirectory=/opt/openclaw Environment=HOME=/opt/openclaw Environment=NODE_ENV=production ExecStart=/usr/local/bin/openclaw gateway Restart=always RestartSec=3 [Install] WantedBy=multi-user.target
Activer et démarrer :
# systemctl daemon-reload # systemctl enable --now openclaw
Mise à jour de OpenClaw
Mettre à jour OpenClaw :
# npm install -g openclaw@latest
Redémarrer le service :
# systemctl restart openclaw