centos yum装置php7的办法:起首装置PHP7相应的yum源;而后经过饬令“yum install php70w”装置PHP7;最初经过“php -v”饬令测试能否装置胜利便可。
CentOS7采纳yum形式装置PHP7
查看零碎版本饬令
[root@VM_176_162_centos ~]# cat /etc/centos-release CentOS Linux release 7.3.1611 (Core)
1.若以前装置过其余版本PHP,先删除了
yum remove php*
2.rpm装置PHP7相应的yum源
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 #今朝 webtatic.com 最高只有php72 假如要更高的可以使用上面的 rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm CentOS/RHEL 6.x: rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
3.yum装置PHP7
yum install php70w
4. 装置终了,测试能否装置胜利
php -v
5.要运转PHP网页,要启动php-fpm诠释器
service php-fpm start
6.装置其余插件(选装)
这一步假如闲费事的话间接正在执行上面这条饬令便可(提醒有抵触的话依照提醒过滤抵触)
yum install php70w* //意为装置全副插件
假如遇到婚配没有到的成绩应该是用了zsh的缘由,切换到一般bash便可,以下图所示:
以上就是centos yum装置php7的办法的具体内容,更多请存眷资源魔其它相干文章!
标签: Centos PHP7 php7开发教程 php7开发资料 php7开发自学 yum
版权声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。
抱歉,评论功能暂时关闭!