The safe config-change ritual: nginx -t tests the syntax first, and only if it passes (the && short-circuit) does systemctl reload apply it — reload gracefully restarts workers without dropping connections. If the test fails, nothing changes and your current config stays live. Never reload on a failing test.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.