search

Home  >  Q&A  >  body text

What does nginx smooth restart mean?

Doesn’t it mean to stop the service?

PHP中文网PHP中文网2747 days ago638

reply all(2)I'll reply

  • 習慣沉默

    習慣沉默2017-05-16 17:25:50

    It should mean reloading the configuration file, or upgrading nginx without stopping the business.
    The general principle is that nginx will start a new worker with a new configuration file, and then slowly stop the old configuration worker that has processed the request.

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 17:25:50

    nginx runs a new worker process and gracefully shuts down the old worker process, notifying the worker process to close the listening socket but continue to serve currently connected clients. After all client services are completed, the old worker process is shut down. If application of the new configuration file fails, nginx will continue to work using the old configuration file.

    reply
    0
  • Cancelreply