Centos下给PHP一键升级高版本7.2.0

我是在Centos下测试的,目前php版本是7.0.0,我要升级到php7.2.0,下面开始。

执行命令

# wget http://soft.vpser.net/lnmp/upgrade_php.sh;/bin/bash upgrade_php.sh  

输入版本号

# 7.2.0   //确认回车等待下载

慢慢等待一步步编译安装就可以了。

=========================================================================
You have successfully upgrade from 7.1.10 to 7.2.0
=========================================================================
LNMP is tool to auto-compile & install Nginx+MySQL+PHP on Linux 
=========================================================================

For more information please visit http://www.lnmp.org/

=========================================================================

完成之后需要杀掉老进程,重启PHP。

原文地址:https://www.cnblogs.com/wt645631686/p/8376149.html