php-fpm

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php-fpm相关的知识,希望对你有一定的参考价值。

install php-fpm

# Ubuntu
sudo apt-get install python-software-properties;
sudo add-apt-repository ppa:ondrej/php5-5.6;
sudo apt-get update;
sudo apt-get install php5-fpm php5-cli php5-curl php5-gd php5-json php5-mcrypt php5-mysqlnd;
# CentOS
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm;
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm;
sudo yum -y --enablerepo=epel,remi,remi-php56 install php-fpm php-cli php-gd php-mbstring php-mcrypt php-mysqlnd php-opcache php-pdo php-devel;

global config

On Ubuntu, the primary PHP-FPM cofiguration file is /etc/php5/fpm/php-fpm.conf.
On CentOS, the primary PHP-FPM configuration file is /etc/php-fpm.conf.

emergency_restart_threshold = 10
emergency_restart_interval = 1m

pool config

include=/etc/php5/fpm/pool.d/*.conf      //pool 目录定义
include=/etc/php-fpm.d/*.conf

 

以上是关于php-fpm的主要内容,如果未能解决你的问题,请参考以下文章

php配置php-fpm启动参数及配置详解

PHPFastCGI进程管理器PHP-FPM详解

服务器程序源代码分析之二:php-fpm

PHP-fpm 远程代码执行漏洞(CVE-2019-11043)源码分析

PHP 7的PHP-FPM存在远程代码执行漏洞

PHP性能调优---PHP-FPM配置及使用总结