How to Manage Services with systemctl
`systemctl` is the primary tool for managing services on modern Linux distributions that use systemd.
Common Commands
# Start a service (e.g., nginx)
sudo systemctl start nginx
# Stop a service
sudo systemctl stop nginx
# Restart a service
sudo systemctl restart nginx
# Reload a service's configuration without restarting
sudo systemctl reload nginx
# Check the status of a service
sudo systemctl status nginx
# Enable a service to start automatically on boot
sudo systemctl enable nginx
# Disable a service from starting on boot
sudo systemctl disable nginx
Copy