服务器部署中间件及依赖包的脚本,在centos 7.6系统可用

preview
共27个文件
sh:27个
需积分: 0 1 下载量 45 浏览量 更新于2023-10-11 收藏 4KB GZ 举报
#!/bin/bash get_char(){ SAVEDSTTY=`stty -g` stty -echo stty cbreak dd if=/dev/tty bs=1 count=1 2> /dev/null stty -raw stty echo stty $SAVEDSTTY } wt(){ SCRIPT=$(whiptail --title "CheckList" --menu \ "Choosed deploy mode" 15 60 2 \ "01-single" "Single deploy mode." \ "02-distribute" "Distribute deploy mode." 3>&1 1>&2 2>&3) exitstatus=$? if [ $exitstatus = 0 ]; then echo "Your chooses are:" $SCRIPT read -r -p "Are You Sure? [Y/n] " input case $input