Managing Services with systemctl
systemctl is the standard tool for managing services on modern Linux distributions.
Check Service Status
systemctl status nginx
Start a Service
systemctl start nginx
Stop a Service
systemctl stop nginx
Restart a Service
systemctl restart nginx
Enable a Service to Start at Boot
systemctl enable nginx
Disable a Service from Starting at Boot
systemctl disable nginx
View All Running Services
systemctl list-units --type=service --state=running
Replace nginx with any service name (e.g., apache2, mysql, ssh).