« OpenClaw » : différence entre les versions
De Le Wiki de Lug
Autres actions
Aucun résumé des modifications |
|||
| Ligne 12 : | Ligne 12 : | ||
* GPU : | * GPU : | ||
** Inutile | ** Inutile | ||
= Installation OpenClaw (service dédié) = | |||
== Installation (Debian) == | |||
# apt update && apt upgrade -y | |||
# apt install -y curl ca-certificates gnupg | |||
# curl -fsSL <nowiki>https://</nowiki>deb.nodesource.com/setup_<font color = green>24</font>.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 | |||
== 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 | |||
WorkingDirectory=/opt/openclaw | |||
ExecStart=/usr/bin/openclaw | |||
Restart=always | |||
RestartSec=3 | |||
Environment=NODE_ENV=production | |||
[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 | |||
Version du 17 avril 2026 à 17:22
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 # 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
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 WorkingDirectory=/opt/openclaw ExecStart=/usr/bin/openclaw Restart=always RestartSec=3 Environment=NODE_ENV=production [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