一、进入lnmp安装目录,并执行phpmyadmin安装命令

cd /root/lnmp1.6
./upgrade.sh phpmyadmin

返回信息:

+———————————————————————–+
| Upgrade script for LNMP V1.6, Written by Licess |
+———————————————————————–+
| A tool to upgrade Nginx,MySQL/Mariadb,PHP for LNMP/LNMPA/LAMP |
+———————————————————————–+
| For more information please visit https://lnmp.org |
+———————————————————————–+
You can get version number from https://www.phpmyadmin.net/downloads/
Please enter phpMyAdmin version you want, (example: 4.8.0 ):

提示phpmyadmin默认版本为4.8.0,直接输入版本号回车就自动开始安装了;

假如安装错了版本,想换其它版本,其它不用管再执行一次phpmyadmin安装命令,它会自动覆盖安装;

以下是完成后的返回信息:

============================check files==================================
Notice: phpMyAdmin-4.8.0-all-languages.tar.xz not found!!!download now……
–2020-01-03 02:17:05– https://files.phpmyadmin.net/phpMyAdmin/4.8.0/phpMyAdmin-4.8.0-all-languages.tar.xz
Resolving files.phpmyadmin.net (files.phpmyadmin.net)… 185.180.13.212
Connecting to files.phpmyadmin.net (files.phpmyadmin.net)|185.180.13.212|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 5923792 (5.6M) [application/octet-stream]
Saving to: ‘phpMyAdmin-4.8.0-all-languages.tar.xz’

100%[======================================>] 5,923,792 636KB/s in 7.6s

2020-01-03 02:17:13 (766 KB/s) – ‘phpMyAdmin-4.8.0-all-languages.tar.xz’ saved [5923792/5923792]

Download phpMyAdmin-4.8.0-all-languages.tar.xz successfully!
============================check files==================================
Backup old phpMyAdmin…
Uncompress phpMyAdmin-4.8.0-all-languages.tar.xz …
======== upgrade phpMyAdmin completed ======