原有环境:Ubuntu14.04+Nginx+PHP5.4-fpm
1、卸载PHP5.4
sudo apt-get --purge removePHP5-fpm
2、安装PHP5.6-fpm
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/PHP
sudo apt-get update
sudo apt-get -y install PHP5.6-fpm PHP5.6-mcrypt PHP5.6-mbstring PHP5.6-curl PHP5.6-cli PHP5.6-MysqL PHP5.6-gd PHP5.6-intl PHP5.6-xsl PHP5.6-zip
3、配置PHP5.6-fpm
sudo vi /etc/PHP/5.6/fpm/pool.d/www.conf
listen = /var/run/PHP5-fpm.sock 改为listen = 127.0.0.1:9000
pm.max_children修改为300
pm.start_servers=10
pm.min_spare_servers=10
pm.max_spare_servers=300
pm.max_requests=10240
原文链接:https://www.f2er.com/ubuntu/350743.html