Linux, terminal and Git

Stage 8 · Lesson 6 of 9

Services and logs

SSH, servers and debugging

A is a program that runs all the time in the background, such as a . On most servers, systemd starts these services and restarts them if needed. systemctl status nginx shows whether a service is running, with its latest log lines.

systemctl restart restarts it, and systemctl enable makes it start when the machine boots. journalctl -u nginx -f follows its logs live. Other logs live under /var/log.

When anything on a server misbehaves, the logs usually say why. Often the first error explains it, not the last. Recent WSL versions can run systemd too.

Common traprestarting a failing service again and again without reading its log.

A question to check yourself, an AI practice session and 1 cheat sheet entry come when you add the roadmap to your account. Add it

Resources for this stage

Start with· follow one of these

Practise

Keep handy

Also worth your time

  • The server, networking and troubleshooting branches of the Linux map

Mark this stage as not done?