CentOS7安装PHP7

发布时间:2019-08-07 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了CentOS7安装PHP7脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

1.查看CentOS版本号

[root@localhost etc]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)

2.rpm安装php7相应的yum

@H_126_33@[root@localhost etc] rpm -Uvh https://mirror.webtatic.COM/yum/el7/webtatic-release.rpm 获取https://mirror.webtatic.com/yum/el7/webtatic-release.rpm 警告:/VAR/tmp/rpm-tmp.h2HeqS: 头V4 RSA/SHA1 Signature, 密钥 ID 62e74ca5: NOKEY 错误:依赖检测失败: EPEL-release >= 7 被 webtatic-release-7-3.noArch 需要

3.需要先安装ePEl-release

[root@localhost etc]# yum -y install epel-release

4.重复第二步,安装php7相应的yum源

5.安装php7

[root@localhost etc]# yum install php70w

6.查看php版本

[root@localhost etc]# php -v
PHP 7.0.14 (cli) (built: Dec 10 2016 11:35:27) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend TechnoLOGies

脚本宝典总结

以上是脚本宝典为你收集整理的CentOS7安装PHP7全部内容,希望文章能够帮你解决CentOS7安装PHP7所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。