阿帕奇平稳重启 - 它影响当前PHP脚本执行 [英] Apache graceful restart - Does it affect current PHP script execution

查看:251
本文介绍了阿帕奇平稳重启 - 它影响当前PHP脚本执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在读关于Apache平稳重启。

I had been reading about Apache graceful restart.

apachectl -k graceful

http://httpd.apache.org/docs/2.2/stopping。 HTML#优美

在USR1或优雅的信号使得父进程通知
  孩子们他们目前的请求后退出(或立即退出
  如果他们没有进行服务)。

The USR1 or graceful signal causes the parent process to advise the children to exit after their current request (or to exit immediately if they're not serving anything).

http://www.electrictoolbox.com/artic...estart-apache /

...这意味着,任何人谁是在下载东西的中间
  将继续能够下载它

...meaning that anyone who is in the middle of downloading something will continue to be able to download it.

如果当前正在执行一个长期运行的PHP脚本?(例如:处理大图),将平滑重启允许它完成还是会阻碍其执行

If a long running PHP script is currently being executed (eg: processing a large image), will graceful restart allow it to be completed or will it hinder its execution?

推荐答案

这将完成,因为Apache子进程忙于处理响应了客户的要求和PHP等待完成的响应。

It will be completed because the Apache child process is busy serving the response for the customers request and waits for PHP to finish the response.

这篇关于阿帕奇平稳重启 - 它影响当前PHP脚本执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆