执行:yum install epel-release
一,添加php5.6仓库
<pre name="code" class="html">
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
二,执行yum安装
yum install -y --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-fpm
php-fpm配置文件在: /etc/php-fpm.conf 和 /etc/php-fpm.d/www.conf
重启动php-fpm:
service php-fpm restart