1.配置yum源,php
yum install epel-release
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
2.查看安裝包列表mysql
yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
3.安裝sql
yum install --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