Search courses, chapters, or pages...
Trace what happens when you start a web app on a server: the operating system creates a process, gives it memory, and runs its code until it exits or is stopped.
Use what you learned in the previous lesson to solve real-world problems.
Follow a web request from a browser to a server address and see how the app receives it by listening on a specific port such as 80, 443, or 3000.
Check what you understood with a short quiz.
Compare localhost, private addresses, and public addresses so you can tell whether an app is reachable only from the same machine, from a network, or from the internet.
Reason through why an app needs files on disk: executable code, static assets, templates, uploaded content, and local data each behave differently when the app runs.
Use environment variables as runtime settings, such as database URLs, feature flags, or secret names, without hard-coding them into the application.
Recognize how apps connect to outside dependencies like databases, caches, message queues, and third-party APIs, and why those addresses and credentials are usually configuration.
Read the difference between logs written to standard output and logs written to files, and use log lines to reconstruct what an app did before a failure.
Interpret common process endings: a clean shutdown, a crash, a nonzero exit code, or a kill signal from the operating system.
Walk through how a service manager such as systemd keeps an app running by starting it at boot, restarting it after crashes, and recording its status.
Identify what makes a running app unhealthy even if its process still exists, such as a stuck request handler, full disk, broken dependency, or exhausted memory.
Reason about CPU, memory, disk, and file descriptor limits so you can predict why one busy app can slow down or break other work on the same server.
Compare graceful shutdown with abrupt termination: see how an app stops accepting new work, finishes in-flight requests, closes connections, and exits safely.
Review this chapter with practice based on your mistakes.