cenos 7 安装php7

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

CentOS/RHEL 6.x:

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

2.

yum install php70w php70w-opcache

3.

If you know what you are doing, you can upgrade PHP by:

yum install yum-plugin-replace
 
yum replace php-common --replace-with=php70w-common

4. 重启apache 服务 systemctl restat httpd.service

上一篇:EassyMock实践 捕获参数


下一篇:codeforces 462C Appleman and Toastman 解题报告