PHP7

在CentOS 7.X 上安装PHP 7.X

yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

yum -y install yum-utils

yum-config-manager --enable remi-php71   [Install PHP 7.1]
 yum-config-manager --enable remi-php72   [Install PHP 7.2]

 yum -y install php php-mcrypt php-cli php-gd php-curl php-mysql 

 php -v

标签
订阅 PHP7