sudo systemctl restart nginx

Category: Self-Hosting

sudo systemctl restart nginx

Fully restart Nginx — use after major config changes or if reload doesn't take effect

Fully stops and restarts Nginx. Use this if reload doesn't pick up a change, like adding a new SSL certificate module.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.