3 ms·
Seen many nginx tutorials omit a pretty critical (IMO) command before applying/reloading config changes: nginx -t. nginx -t will quickly tell you if you've scr
by ericcholis 11y ago
Seen many nginx tutorials omit a pretty critical (IMO) command before applying/reloading config changes: nginx -t.
nginx -t will quickly tell you if you've screwed something up before actually trying to apply changes.
- ceequof 11y ago`service nginx configtest` does the same thing.
- garethsaxby 11y agoThat's good to know too, yes, but using the nginx binary itself to test is always available, whilst a service command normally involves an init script, systemd config file or similar to be available, and they can vary between packages and distributions.