2023-11-10 分类: 网站建设
OS:CentOs 7
1.查看当前 pHp 版本
[root@disconf zbox]# php -v
pHp 5.4.16 (cli) (built: Apr 12 2018 19:02:01)
Copyright (c) 1997-2013 The pHp Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
2.查看当前 pHp 相关的安装包,删除之
yum list installed | grep php
yum remove php
yum remove php-*
3.更换 RpM 源
#Centos 5.X:
rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
#CentOs 6.x:
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
#CentOs 7.X:
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
4.安装新的版本
yum install -y php71w php71w-cli php71w-common php71w-devel php71w-embedded php71w-fpm php71w-gd php71w-mbstring php71w-mysqlnd php71w-opcache php71w-pdo php71w-xml php71w-ldap php71w-mcrypt
5.再次检查版本
[root@disconf zbox]# php -v
pHp 7.1.27 (cli) (built: Mar 10 2019 16:23:55) ( NTS )
Copyright (c) 1997-2018 The pHp Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend Opcache v7.1.27, Copyright (c) 1999-2018, by Zend Technologies
-- The End --
文章标题:升级pHp7CentOS7系统下的简易教程
标题URL:/news1/293701.html
成都网站建设公司_创新互联,为您提供动态网站、网站内链、网站设计公司、域名注册、App开发、网站制作
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联
猜你还喜欢下面的内容