I heard that nginx does not need more than one process, that is not multiple requests are using the same process, will not interfere?
Does PHP code need to be rewritten?
Reply content:
I heard that nginx does not need more than one process, that is not multiple requests are using the same process, will not interfere?
Does PHP code need to be rewritten?
Completely unnecessary, and PHP has nothing to do, PHP is a scripting language, you have a virtual machine to deal with these things, you do not need to care about what platform to run
It's not completely unaffected. Some variables such as _server[php_self] are related to Apache or Nginx.
Using PHP, you can say that you only need to focus on the PHP interpreter, regardless of which Web server, you need to invoke the interpreter to execute the script.
Not only does not disturb ... Conversely, this single-process (threading) model performs better in high concurrency ... Like Nodejs ...
Because of high concurrency: A multi-process (threading) model can cause most of the CPU's computational power to be wasted on its process (thread) switching ...
The $_server variable may have an effect, and then the rewrite rule needs to be modified basically almost