CentOS 使用 YUM 安装最新版 PHP

PHP YUM 安装

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自行安装其他需要的扩展

评论数量: 0

1
点赞
673
浏览
0
评论
贡献者

贡献 62