systemctl restart nginx

Category: Administration

systemctl restart nginx

Stop and start a service

Stops and then immediately restarts a service — useful for applying configuration changes.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.