问题:假设 Apache 进程当前正在执行 PHP,该 PHP 正在执行非常长的数据库查询(30 秒左右)。您想要推送修复程序来优化数据库查询。
如果您执行 git Push
,这会影响当前正在执行的 PHP 进程及其各自的数据库查询吗?
我在 Linux 平台上使用 MySql、PHP 和 Apache(LAMP 设置)。
显然我担心 PHP 代码在数据库调用中发生变化。
最佳答案
这个答案可能有帮助:
You cannot edit your program because it's compiled in memory. Any modification to the source code will be active after you reload the program. This means that you have to kill the process and reload the script.
在这里找到:https://softwareengineering.stackexchange.com/a/213265
关于php - 当你进行 git Push 时,现有的 apache PHP 进程会发生什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51157347/