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版本