Home  >  Article  >  Backend Development  >  php-fpm中的历程管理方式优化

php-fpm中的历程管理方式优化

WBOY
WBOYOriginal
2016-06-13 13:20:12662browse

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 ;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn