Átomo
67Sy
Sistema · Linux / macOS

systemctl

Abrir na tabela

Definição

Controla serviços no Linux: iniciar, parar, reiniciar e ver estado.

Só em distribuições com systemd (Ubuntu, Debian, Fedora, RHEL).

Exemplos

1. Estado e controle
sudo systemctl status nginx
sudo systemctl restart nginx
2. Iniciar no boot
sudo systemctl enable --now docker
3. Listar serviços
systemctl list-units --type=service --state=running

No mesmo grupo