1

PHP7 出来一段时间了,今天动手试试,看看新版 PHP 性能咋样。

RPM 安装 PHP7 相应的 YUM源

1、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

2、CentOS/RHEL 6.x:

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

YUM 安装 PHP7

yum install php70w php70w-opcache

[root@xxx-d1 /usr/local]# php -v
PHP 7.0.19 (cli) (built: May 12 2017 21:20:16) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.19, Copyright (c) 1999-2017, by Zend Technologies

vboy1010
912 声望35 粉丝

清泉石上流