Nginx web server
high risk
nginx -t && systemctl reload nginxValidate, then reloadWeb server/reverse proxy. Always test config with -t before reloading.
| Flag | Meaning |
|---|---|
-t | Test configuration |
-T | Test and dump configuration |
-s reload | Reload gracefully |
-s stop | Stop immediately |
nginx -tValidate config · explain & risk-check →nginx -t && systemctl reload nginxSafe reload · explain & risk-check →Reference text is hand-written and may be incomplete — check man nginx for your version. Test destructive commands on a non-production system first.