You can load a new configuration using signals . Will be
- Read and test the new configuration. If the configuration is incorrect, then do nothing.
- When this is true, start working with new workers with a new configuration. Connect new workers to port listening, registration, etc.
- Disconnect old workers from students.
- Gracefully shut down the old workers.
You can even upgrade to a new binary on the fly. See the same document.
To reboot, send a reload signal:
nginx -s reload
Dmitry Kaigorodov
source share