The shop app on web is refused on port 8080.
A service is a program that runs in the background: systemd starts it, at boot if it's enabled, and looks after it. nginx, the shop app and ssh are services.
New command
systemctl status
Shows whether a service is running, and its last log lines.
Usagesystemctl status service
text
learner@web:~$ systemctl status shop-app
○ shop-app.service - Monster Market shop app
Loaded: loaded (/etc/systemd/system/shop-app.service; enabled; preset: enabled)
Active: inactive (dead) since Fri 2026-11-20 00:26:34 UTC; 2min 22s ago
…
Nov 20 00:26:34 web systemd[1]: Stopped shop-app.service - Monster Market shop app.active (running) is up. inactive (dead): stopped. For most services, nothing then listens on its port, so connections are refused.
New command
sudo systemctl start
Starts a service. sudo systemctl restart <service> stops it and starts it again.
Usagesudo systemctl start service
bash
sudo systemctl start shop-appA program reads its config file when it starts. After you change the config, restart the service, or it keeps running with the old one.
Objectives
- What state is the shop app in?
- Start it.