Ravi Sir's Cards › AWS
Fix a service in 4 steps
This revision card explains Fix a service in 4 steps. It starts from the need that check state. It describes read the log. The how-to section notes restart. An example on the card is start at boot.
Read card text
What this card says
Why do we need it?
Check state.
systemctl status nginx
What is it?
Read the log.
journalctl -u nginx -n 30
How to do it
Restart.
systemctl restart nginx
Example
Start at boot.
systemctl enable --now nginx