centos通过yum安装php
1、添加php的yum软件仓库
sudo rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
2、安装php相关软件,执行过程中全部选择yes即可
sudo yum install php71w.x86_64
php71w-cli.x86_64
php71w-common.x86_64
php71w-gd.x86_64
php71w-ldap.x86_64
php71w-mbstring.x86_64
php71w-mcrypt.x86_64
php71w-mysql.x86_64
php71w-pdo.x86_64
3、安装php71-fpm
sudo yum install php71w-fpm.x86_64
等待安装完成输入php -version查看php版本