Author: Amanda

  1. 客戶端發送 request
  2. 把 request 丟給 php-fpm
  3. php-fpm 找對應腳本執行
  4. 執行結果丟回 nginx
  5. nginx 將結果給使用者

FastCGI Process Manager

接收特定 request,運行 php 腳本 ⇒ 結果

可啟動多個 child process ⇒ 多核心 CPU

Process 執行完會先閒置,太多 process 閒置 + 閒置太久 ⇒ 關閉 【避免反覆啟動的浪費】

[講解] nginx 與 php-fpm 運作介紹與設定 | 辛比記