3

nginx がソフト終了をサポートしているかどうかは誰にもわかりませんか? つまり、すべての接続がなくなるかタイムアウトになるまで (特定の時間間隔を過ぎると) 実行され続け、この期間中は新しい接続も許可されませんか?

例えば:

nginx stop
nginx running (2 connections active and blocking any new connections)
nginx running (1 connection active)
nginx stopped (0 connections active)
4

1 に答える 1

5

男nginx

 -s signal      Send signal to the master process. The argument signal can be
                one of: stop, quit, reopen, reload.

                The following table shows the corresponding system signals.

                stop    SIGTERM
                quit    SIGQUIT
                reopen  SIGUSR1
                reload  SIGHUP

具体的には、SIGQUIT が必要です。素人の言葉で:

  • stop— 高速シャットダウン
  • quit— グレースフル シャットダウン
  • reload— 構成ファイルのリロード
  • reopen— ログファイルを再度開く

詳細については http://nginx.org/en/docs/control.html 、クイック リファレンスについては http://nginx.org/en/docs/beginners_guide.html#control も参照しください

于 2012-04-18T10:20:39.023 に答える