php-fpm
2016-02-24 17:29
666 查看
install php-fpm
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.
pool config
# 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的变量实现(给PHP开发者的PHP源码-第三部分)
- PHP instanceof 的使用
- php 魔法方法
- windows下安装rabbitmq的php扩展amqp
- PHP之自动加载
- PHP中For、While、Foreach循环的比较
- PHPStorm实用快捷键整理
- php将文件转换成二进制输出[转]
- PHP的几个特性
- PHP中“简单工厂模式”实例讲解
- 用itextpdf生成水印来代替pdf的替换问题
- activiti 源码笔记之startProcess
- PHP-xml-1
- PHP与MySQL学习笔记9:创建Web数据库
- php对象在内存中创建于释放
- matplotlib Note
- PHP获取远程文件的几种方式
- 将H264码流打包成RTP包
- InputStream和OutputStream之间的区别
- PHP filesystem attack vectors