Problem Statement
Which command restarts a running service?
Explanation
systemctl restart stops and then starts a service again.
It’s used to apply new configurations or recover from temporary failures.
Code Solution
SolutionRead Only
sudo systemctl restart nginx
Practice Sets
This question appears in the following practice sets: