Apache graceful restart - Does it affect current PHP script execution

萝らか妹 提交于 2019-12-13 16:24:35

问题


I had been reading about Apache graceful restart.

apachectl -k graceful

http://httpd.apache.org/docs/2.2/stopping.html#graceful

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.

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?


回答1:


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.



来源:https://stackoverflow.com/questions/10947895/apache-graceful-restart-does-it-affect-current-php-script-execution

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!