发布于 5年前

CentOS 使用 YUM 安装最新版 PHP

1 添加yum镜像信息

CentOS/RHEL 7.x:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

CentOS/RHEL 6.x:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

2 安装

yum search php71w
yum install mod_php71w php71w-opcache php71w-fpm 

通过yum自行安装其他需要的扩展

©2020 edoou.com   京ICP备16001874号-3