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

 

posted @ 2017-01-10 10:02  Yeah,程序猿  阅读(207)  评论(0编辑  收藏  举报