centos7安装php7
在centos7通过yum安装PHP7,首先在终端运行: 1.命令: yum -y install epel-release 安装
2.安装PHP 终端再次运行如下命令: rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm 获取PHP7的yum源,然后再执行: yum install php70w
3.验证安装 终端命令:PHP -v,显示当前PHP版本,信息如下:
[root@moliangjun /]# php -v
PHP 7.0.33 (cli) (built: Dec 6 2018 22:30:44) ( NTS ) Copyright © 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright © 1998-2017 Zend Technologies
OK,CentOS 7下通过yum安装成功PHP7.