Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mdserver-web/scripts/quick/debug.sh

51 lines
1.3 KiB

#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
echo "welcome to mdserver-web panel"
startTime=`date +%s`
3 years ago
if [ ! -d /www/server/mdserver-web ];then
echo "mdserver-web not exist!"
exit 1
fi
# openresty
3 years ago
if [ ! -d /www/server/openresty ];then
cd /www/server/mdserver-web/plugins/openresty && bash install.sh install 1.21.4.1
fi
# php
3 years ago
if [ ! -d /www/server/php/71 ];then
cd /www/server/mdserver-web/plugins/php && bash install.sh install 71
fi
3 years ago
PHP_VER_LIST=(53 54 55 56 71 72 73 74 80 81)
# PHP_VER_LIST=(81)
for PHP_VER in ${PHP_VER_LIST[@]}; do
echo "php${PHP_VER} -- start"
cd /www/server/mdserver-web/plugins/php && bash install.sh install ${PHP_VER}
echo "php${PHP_VER} -- end"
done
3 years ago
# mysql
3 years ago
if [ ! -d /www/server/mysql ];then
# cd /www/server/mdserver-web/plugins/mysql && bash install.sh install 5.7
# cd /www/server/mdserver-web && python3 /www/server/mdserver-web/plugins/mysql/index.py start 5.7
# cd /www/server/mdserver-web/plugins/mysql && bash install.sh install 5.6
# cd /www/server/mdserver-web && python3 /www/server/mdserver-web/plugins/mysql/index.py start 5.6
3 years ago
cd /www/server/mdserver-web/plugins/mysql && bash install.sh install 8.0
3 years ago
fi
endTime=`date +%s`
((outTime=(${endTime}-${startTime})/60))
echo -e "Time consumed:\033[32m $outTime \033[0mMinute!"