Centos 7.2 安装PHP

REMI 仓库提供了CentOS和RHEL的核心包的更新版本,尤其是最新的PHP/MySQL系列 在安装过程中可以使用如下命令随时查看仓库变化 yum repolist all 安装REMI仓库之前,首先安装EPEL仓库,因为REMI中的一些包依赖于EPEL yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 接下来安装 REMI 仓库 yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm 再安装 yum 的配置管理工具,方便配置 yum 仓库 yum install yum-utils 启用 remi-php71 仓库 yum-config-manager --enable remi-php71 最后,安装PHP yum install php 安装完成后,查看PHP版本以及扩展信息 php --version php --modules 参考:[Remi's RPM repository](https://rpms.remirepo.net/wizard/) 安装PHP-FPM,简单理解,PHP-FPM是FastCGI的管理器,FastCGI是处理Nginx转发过来的PHP脚本的。 yum install php-fpm 参考:[PHP-FPM是什么](http://www.web3.xin/manual/detail/id/64.html)
联系我们

邮箱 626512443@qq.com
电话 18611320371(微信)
QQ群 235681453

Copyright © 2015-2022

备案号:京ICP备15003423号-3