php - 当你进行 git Push 时,现有的 apache PHP 进程会发生什么?

标签 php mysql git apache

问题:假设 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/

相关文章:

php - 如何在PHP中将多个数组平均为一个?

php - 我无法从 Laravel 中的请求 AJAX 检索数据

php - 哪个更好?将结果存储在 session 中还是重新查询数据库?

xcode - Git 和 Xcode : Why do I have to agree to Xcode's T&Cs to use Git?

ruby-on-rails - RoR/Heroku : detected sqlite3 gem which is not supported on heroku

php - 用于匹配字符串中单引号单词并忽略转义单引号的正则表达式模式

php - Laravel 的 ShouldQueue 是如何工作的

sql - 从 MySQL 查询中选择 2 个 COUNT()

javascript - 使用 .checked() 函数时仅检测到第一个单选按钮。休息不考虑

git - 如何在团队中使用 git tfs