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 ...
随机推荐
- 洛谷 P4135 作诗(分块)
题目链接 题意:\(n\) 个数,每个数都在 \([1,c]\) 中,\(m\) 次询问,每次问在 \([l,r]\) 中有多少个数出现偶数次.强制在线. \(1 \leq n,m,c \leq 10 ...
- 洛谷 P7520 - [省选联考 2021 A 卷] 支配(支配树)
洛谷题面传送门 真·支配树不 sb 的题. 首先题面已经疯狂暗示咱们建出支配树对吧,那咱就老老实实建呗.由于这题数据范围允许 \(n^2\) 算法通过,因此可以考虑 \(\mathcal O(n^2 ...
- 生成&添加 SSH公钥
生成&添加 SSH公钥 生成 打开 Terminal(终端) 生成命令 ssh-keygen -t ed25519 -C "your_email@example.com" ...
- VS Code 配置和使用
背景 Visual Studio Code(简称VS Code)是一款由微软开发且跨平台的免费源代码编辑器[6].该软件支持语法高亮.代码自动补全(又称IntelliSense).代码重构.查看定义功 ...
- 【shell】循环将字符串写入数组中?
bash shell脚本语法怪异,其他语言循环写入数组或列表都很简单实现,或有相应函数来做. 以下用两种方法来实现: 方法一 c=0 for i in `ls ./Data_Analysis/Quan ...
- idea安装插件 JClassLib Bytecode viewer
目录 idea安装插件 JClassLib Bytecode viewer 安装过程 使用 idea安装插件 JClassLib Bytecode viewer IDEA 中安装 jClassLib ...
- Yarn 生产环境核心配置参数
目录 Yarn 生产环境核心配置参数 ResourceManager NodeManager Container Yarn 生产环境核心配置参数 ResourceManager 配置调度器 yarn. ...
- webpack打包报错 ERROR in ./js/ww.js from UglifyJs Unexpected token keyword «function», expected punc «,» [src/page/ww/view/xx/xx.vue:119,0][./js/ww.js:55218,17]
找了好多解决办法 你可以试着将babel-loader的exclude注释掉,然后看能否打包成功.如果可以,那就是这个问题.你只需要在vue.config.js中配置transpileDependen ...
- vue开发多页面应用 - hash模式和history模式
我们知道vue可以快速开发web单页应用,而且官方为我们提供了自己的应用脚手架vue-cli,我们只需要下载脚手架,安装依赖后就可以启动vue应用雏形. 这得益与webpack的依赖追踪,各种资源后缀 ...
- 【Reverse】每日必逆0x01
附件:https://files.buuoj.cn/files/7458c5c0ce999ac491df13cf7a7ed9f1/SimpleRev 题解 查壳 64位ELF文件,无壳 IDApro处 ...