How to manage services with systemd

Answered
Jan 05, 2026 1572 views 1 answers
47

I need to manage services like starting, stopping, and enabling at boot. How?

L
Asked by layla_web
Bronze 276 rep

1 Answer

10
# Start/stop service
sudo systemctl start nginx
sudo systemctl stop nginx
sudo systemctl restart nginx
sudo systemctl reload nginx

# Enable/disable at boot
sudo systemctl enable nginx
sudo systemctl disable nginx

# Check status
sudo systemctl status nginx

# List all services
sudo systemctl list-units --type=service

# Check logs
sudo journalctl -u nginx -f
H
Answered by hassan_ops 1 week, 2 days ago
Bronze 565 rep

Your Answer

You need to be logged in to answer questions.

Log In to Answer

Hot Questions

No hot questions available.