#!/bin/bash wget https://files.phpmyadmin.net/phpMyAdmin/"$1"/phpMyAdmin-"$1"-all-languages.zip unzip phpMyAdmin-"$1"-all-languages.zip if [ -f 'phpmyadmin/config.inc.php' ]; then cp phpmyadmin/config.inc.php phpMyAdmin-"$1"-all-languages/ fi rm -rf phpmyadmin mv phpMyAdmin-"$1"-all-languages phpmyadmin chown -R www-data:www-data phpmyadmin
复制到phpmyadmin的上一层目录
chmod +x update_phpmyadmin.php
./update_phpmyadmin 4.8.5
就可以安装到指定版本了…
不止一个服务器的更新,以前一条命令一条命令的敲,好烦啊,这下好多了,清静了