nginx有软退出吗?

nginx有软退出吗?,nginx,Nginx,有人知道nginx是否支持软退出吗?这意味着它是否会一直运行,直到所有连接都消失或超时(超过特定的时间间隔),并且在此期间不允许新连接 例如: nginx stop nginx running (2 connections active and blocking any new connections) nginx running (1 connection active) nginx stopped (0 connections active) 曼宁 -s signal Send

有人知道nginx是否支持软退出吗?这意味着它是否会一直运行,直到所有连接都消失或超时(超过特定的时间间隔),并且在此期间不允许新连接

例如:

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

曼宁

 -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
具体来说,你想退出。用普通人的话说:

  • 停止
    -快速关闭
  • 退出
    -正常关机
  • 重新加载
    -重新加载配置文件
  • 重新打开
    -重新打开日志文件
另请参见:以获取详细信息和快速参考