centos7 升级php版本到7.2
#自带的只有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
centos7 升级php版本到7.2的更多相关文章
- Centos7升级Git版本
centos 升级 Git 版本 问题描述 centos7 系统默认的 git 安装版本是 1.8,但是在项目构建中发现 git 版本过低,于是用源码编译的方式进行升级.同时该文章也适用于安装新的 g ...
- Centos7升级gcc版本方法之一使用scl软件集
Centos7 gcc版本默认4.8.3,Red Hat 为了软件的稳定和版本支持,yum 上版本也是4.8.3,所以无法使用yum进行软件更新,所以使用scl. scl软件集(Software Co ...
- CentOS7 升级gcc版本
CentOS7自带的GCC版本是4.8.5,如下所示: # cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) # which g ...
- centos7 升级php版本
centos7 默认PHP5.4,版本太低,很多要求至少PHP5.5 1.查看已经安装的PHP组件 yum list installed| grep php php.x86_64 -.el7 @bas ...
- Centos7 升级内核版本
1.查看当前内核版本 $ uname -r -.el7.x86_64 $ uname -a Linux k8s-master -.el7.x86_64 # SMP Tue Nov :: UTC x86 ...
- centOS7升级git版本到2.7.3
CentOS 自带的git版本太低,需要升级到2.1.2版本以上才能使用gitea. 升级方法: 1.安装所需软件包 yum install curl-devel expat-devel gettex ...
- centos7升级Python版本后,yum不能正常使用
python升级方法,使用源码编译安装即可,prefix=/usr/local/bin/python3 执行yum list,提示/usr/bin/yum 报错 我是直接在Python2.7的基础上又 ...
- CentOS7升级OpenSSL版本
1.CentOS7.6默认安装的openssl版本为 # 查看openssl版本 openssl version 2.下载最新的openssl wget https://www.openssl.org ...
- Centos7 升级php版本到php7
一.首先查看是否有老版本 yum list installed | grep php 二.如果安装的有 yum remove php.x86_64 php-cli.x86_64 php-common. ...
- centos7升级内核版本
本文转载http://blog.csdn.net/nciasd/article/details/51490146,大神非常厉害!!!!! 查看当前系统的内核版本 # uname -r 1.导入key ...
随机推荐
- [TopCoder2014Final]FrozenStandings 解法探究
https://vjudge.net/problem/TopCoder-13460 简要题意:给出 \(n\) 段从 \(1\) 到 \(n\) 编号的等长区间,保证区间的端点互不相同.区间可以选取其 ...
- CODE FESTIVAL 2017 qual C F - Three Gluttons(DP)
洛谷题面传送门 & Atcoder 题面传送门 DP 好题. 首先考虑如果我们知道 C 吃了哪些寿司,能够还原出多少种符合条件的序列.我们考虑倒着钦定,即,先钦定 A,B,C 三者最后吃的那三 ...
- Codeforces 788E - New task(线段树)
Codeforces 题目传送门 & 洛谷题目传送门 这是一道 *2900 的 D1E,而且被!我!自!己!搞!出!来!了! 虽然我承认它难度及摆放的位置异常异常虚高,并且就算我到了现场也不可 ...
- Flume(三)【进阶】
[toc] 一.Flume 数据传输流程 重要组件: 1)Channel选择器(ChannelSelector) ChannelSelector的作用就是选出Event将要被发往哪个Channel ...
- Swagger2异常 java.lang.NumberFormatException: For input string: ""
问题在访问swagger首页时报错: java.lang.NumberFormatException: For input string: "" at java.lang.Numb ...
- Oracle异常处理——ORA-01502:索引或这类索引的分区处于不可用状态
Oracle异常处理--ORA-01502:索引或这类索引的分区处于不可用状态参考自:https://www.cnblogs.com/lijiaman/p/9277149.html 1.原因分析经过查 ...
- 监测linux系统负载与CPU、内存、硬盘、用户数的shell脚本
本节主要内容: 利用Shell脚本来监控Linux系统的负载.CPU.内存.硬盘.用户登录数. 一.linux系统告警邮件脚本 # vim /scripts/sys-warning.sh #!/bin ...
- Oracle学习笔记(1)
折腾了好久 终于把oracle安装成功了.小兴奋下. 创建了一个数据库 dabook. run--> Services.msc查看服务: 可以看到DABOOK的服务已启动. 1,sys用户 在c ...
- 【Linux】【Shell】【Basic】条件测试和变量
bash脚本编程 脚本文件格式: 第一行,顶格:#!/bin/bash 注释信息:# 代码注释: 缩进,适度添加空白行: ...
- JS21. 使用原生JS封装一个公共的Alert插件(HTML5: Shadow Dom)
效果预览 Shadow DOM Web components 的一个重要属性是封装--可以将标记结构.样式和行为隐藏起来,并与页面上的其他代码相隔离,保证不同的部分不会混在一起,可使代码更加干净.整 ...