Jump to content
PHP論壇人

3.升级MariaDB版本、PHP版本


Jack

Recommended Posts

----------------------------------------
MariaDB升级脚本
----------------------------------------

命令
screen -S lnmp

cd /root/lnmp1.9/

./upgrade.sh mariadb


Enter current root password of Database (Password will not shown):
输入数据库root密码

 

Current MariaDB Version:10.6.8
当前你的MariaDB版本

 

You can get version number from https://downloads.mariadb.org/
Please enter MariaDB Version you want.
(example: 10.0.35 ):
到MariaDB官网获知最新版本号
输入 10.6.11

 

Do you want to install the InnoDB Storage Engine?
(Default yes, if you want please enter: y , if not please enter: n):
启用InnoDB
输入 y

 

===================================
You will upgrade MariaDB V10.6.8 to V10.6.11
===================================


Press any key to start...or Press Ctrl+c to cancel
敲任意键开始


开始漫长的升级过程,若断线
因为一开始就用命令 screen -S lnmp 去升级
那么恢复连线,可以敲命令继续 screen -r lnmp


Starting LNMP...
Starting nginx...  done
Starting php-fpm  done
======== upgrade MariaDB completed ======

 


重启
sudo reboot

 


----------------------------------------
PHP升级脚本
----------------------------------------


命令
screen -S lnmp

cd /root/lnmp1.9/

./upgrade.sh php


Current PHP Version:8.1.7
当前你的PHP版本


You can get version number from http://www.php.net/
到官网获知最新版本号


Please enter a PHP Version you want: 
有新的版本号
输入 8.1.13

 

Press any key to start...or Press Ctrl+c to cancel
敲任意键开始


开始漫长的升级过程,若断线
因为一开始就用命令 screen -S lnmp 去升级
那么恢复连线,可以敲命令继续 screen -r lnmp

 

Starting LNMP...
Starting nginx...  done
Starting php-fpm  done
======== upgrade php completed ======

 

重启
sudo reboot

 

Edited by Jack
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...