1.安装epel源
yum -y install epel-release
yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
2.安装Remi仓库
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
3.安装yum管理工具
yum -y install yum-utils
4.yum安装php
yum-config-manager --enable remi-php70 ???#制定php包版本yum install php-fpm php-mysql php-curl php-gd php-mbstring php-mcrypt php-xml php-xmlrpc php-zip ???#安装php及相关组件
yum安装php7
原文地址:https://www.cnblogs.com/dingkailinux/p/8640568.html