1
Task 1 of 6
Loading...
SERVICE CONTROL
Scenario
The web team pushed a bad config and nginx is down. Customers are seeing 502 errors. Use systemctl to bring services back online and prevent this from happening again.
0 completed
0%
Solution Cheat Sheet
Task 1 — Check service status
systemctl status nginx
Task 2 — Start service
sudo systemctl start nginx
Task 3 — Verify running
systemctl status nginx
Task 4 — Enable on boot
sudo systemctl enable nginx
Task 5 — Restart SSH daemon
sudo systemctl restart sshd
Task 6 — List active services
systemctl list-units --type=service