Hands-on task
Restart a service
A colleague is moving the website to a new directory, /var/www/shop, and has already updated the nginx config. But http://localhost/ still shows the old "Coming soon" page.
Check the status of the nginx service and restart it so the new "Shop is open" page shows up. You don't need to change the config or the site files.
On a regular server, services are managed with systemctl, but the sandbox has no systemd — the service command works here instead.
- service
- systemctl
- service status
- restart
- nginx -t