centos7 升级php版本到7.2
2024-10-16 01:44:55
#自带的只有5.4版本
yum provides php
[root@localhost etc]# yum provides php
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
* webtatic: uk.repo.webtatic.com
mod_php71w-7.1.26-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.1.26-1.w7 mod_php71w-7.1.27-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.1.27-1.w7 mod_php71w-7.1.28-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.1.28-1.w7 mod_php71w-7.1.29-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.1.29-1.w7 mod_php71w-7.1.30-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.1.30-1.w7 mod_php71w-7.1.31-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.1.31-1.w7 mod_php71w-7.1.32-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.1.32-1.w7 mod_php71w-7.1.33-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.1.33-1.w7 mod_php72w-7.2.14-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.2.14-1.w7 mod_php72w-7.2.16-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.2.16-1.w7 mod_php72w-7.2.17-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.2.17-1.w7 mod_php72w-7.2.19-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.2.19-1.w7 mod_php72w-7.2.21-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.2.21-1.w7 mod_php72w-7.2.22-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.2.22-1.w7 mod_php72w-7.2.24-1.w7.x86_64 : PHP module for the Apache HTTP Server
Repo : webtatic
Matched from:
Provides : php = 7.2.24-1.w7 php-5.4.16-46.el7.x86_64 : PHP scripting language for creating dynamic web
: sites
Repo : base php-5.4.16-46.1.el7_7.x86_64 : PHP scripting language for creating dynamic
: web sites
Repo : updates php55w-5.5.38-1.w7.x86_64 : PHP scripting language for creating dynamic web
: sites
Repo : webtatic
Matched from:
Provides : php = 5.5.38-1.w7 php56w-5.6.40-1.w7.x86_64 : PHP scripting language for creating dynamic web
: sites
Repo : webtatic
Matched from:
Provides : php = 5.6.40-1.w7 php70w-7.0.33-1.w7.x86_64 : PHP scripting language for creating dynamic web
: sites
Repo : webtatic
Matched from:
Provides : php = 7.0.33-1.w7
#更新源
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
#移除系统自带的php-common
yum remove php-common -y
#安装依赖包
yum install -y php72w php72w-opcache php72w-xml php72w-mcrypt php72w-gd php72w-devel php72w-mysql php72w-intl php72w-mbstring
#版本变为7.2
php -v
显示以下结果
PHP 7.2.24 (cli) (built: Oct 26 2019 12:28:19) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.24, Copyright (c) 1999-2018, by Zend Technologies
最新文章
- nodejs事件轮询详述
- 深入分析Java ClassLoader原理
- Enterprise Architect 学习 之 活动图
- Cannot forward after response has been committed
- Elasticsearch 之 数据索引
- bzoj1124[POI2008]枪战maf
- bug_ _小心android-support-v4.jar版本混乱造成的NoClassDefFoundError
- codeforces 334B - Eight Point Sets
- 51单片机I/O口直接输入输出实例(附调试及分析过程)
- Python 对服务器返回数据编码进行判断之chardet
- HDU - 6313 Hack It(构造)
- UltraEdit使用(工具类似于notepad++)
- 【总结】瞬时高并发(秒杀/活动)Redis方案
- EasyRadius 动态域名DDNS设置工具,支持WayOS三代,完美解决近段时间3322和每步不稳定问题
- Sql 获取当前日期没有时分秒
- 连通性问题--Algorithms IN C读书笔记
- spring filter 配置
- POJ1062:昂贵的聘礼(枚举+迪杰斯特拉)
- 如何让IE 低版本下支持 css3属性
- 【bzoj3191】[JLOI2013]卡牌游戏 概率dp
热门文章
- 洛谷 P4497 - [WC2011]拼点游戏(数据结构综合)
- Codeforces 639E - Bear and Paradox(二分+贪心)
- PowerDotNet平台化软件架构设计与实现系列(05):ETCD分布式键值存储平台
- 学习java的第十七天
- adjust, administer
- 如何删除苹果电脑垃圾文件-7个高级技巧释放大量苹果Mac
- SpringBoot之HandlerInterceptorAdapter
- mysql 5.7 压缩包安装教程
- Linux基础命令---smbpasswd管理samba密码
- git 使用https方式进行 pull、push代码免密