php-fpm中的過程管理方式最佳化

來源:互聯網
上載者:User
php-fpm中的進程管理方式最佳化

php-fpm中的進程管理方式最佳化
2012年01月16日
  php-fpm目前主要又兩個分支,分別對應於php-5.2.x的版本和php-5.3.x的版本。在5.2.x的版本中,php-fpm.conf使用的是xml格式,而在新的5.3.x版本中,則是和php.ini一樣的配置風格。
  在5.2.x版本中,php-fpm.conf中對於進程管理號稱是有兩種風格,一種是靜態(static)的,一種是類似於apache風格(apache-like)的。
  68 Process manager settings69
  70
  71 Sets style of controling worker process count.
  72 Valid values are ’static’ and ‘apache-like’
  73 static
  按照文檔的說明,如果pm的style採用apache-like,啟動的進程數應該是和StartServers指定的一樣。不過經過數次的嘗試,我們會發現,實際上在這裡將pm的style配置成apache-like沒有起任何作用。也就是說,這裡的apache-like並沒有被實現。
  不過,在最新的5.3.x的配套php-fpm中,apache風格的進程管理已經被實現了。
  098 ; Choose the process manager which control how processes are managed
  099 ; Two choices:
  100 ;
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.