Jump to content
PHP論壇人

3.升級MariaDB版本、PHP版本


Recommended Posts

LNMP一鍵包官網的升級教學
https://lnmp.org/faq/lnmp1-2-upgrade.html


----------------------------------------
MariaDB升級腳本
----------------------------------------

screen -S lnmp

cd /root/lnmp2.0/

./upgrade.sh mariadb


Enter current root password of Database (Password will not shown):
輸入資料庫root密碼
lnmp.org#XXXXX

 

Current MariaDB Version:10.6.13
目前你的MariaDB版本

 


You can get version number from https://downloads.mariadb.org/
Please enter MariaDB Version you want.
(example: 10.0.35 ):

到MariaDB官網可以獲得最新版本號
輸入 10.6.17

 


Using Generic Binaries [y/n]: 

按 y

 


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

按 y

 

 

=====================================================================
You will upgrade MariaDB V10.6.13 to V10.6.17
=====================================================================


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/lnmp2.0/

./upgrade.sh php


Current PHP Version:8.1.19
目前你的PHP版本

 


You can get version number from http://www.php.net/
到http://www.php.net/downloads.php
官網可以獲得最新版本號

 

Please enter a PHP Version you want: 
PHP有新的版本號
輸入 8.1.28

 


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


PHP升級後,如果phpmyadmin無法使用,就需要升級phpmyadmin


 

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...