php7 RPM 安装

https://webtatic.com

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

安装php

Now you can install PHP 7.1’s mod_php SAPI (along with an opcode cache) by doing:

yum install mod_php71w php71w-opcache

You can alternatively install PHP 7.1’s php-fpm SAPI (along with an opcode cache by doing:

yum install -y php71w-fpm php71w-opcache

yum install php71w-*

 systemctl start php-fpm

其他:
安装rpm包时遇到Header V3 DSA signature: NOKEY时解决办法
导入rpg
rpm --import /etc/pki/rpm-gpg/RPM*

发表评论

电子邮件地址不会被公开。 必填项已用*标注