通过本文主要向大家介绍了shell脚本case,shell脚本中的case,shell case语法,shell case,linux shell case等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
核心代码:
if [ $count -eq 0 ]; then
case $myhost in
nginx)
cd /usr/local/webserver/nginx/sbin/
./nginx
echo "nginx has be down"
sleep 5
mysql)
/etc/init.d/mysqld start
echo "mysql has be down"
*)
echo "what‘s the hell?"
esac
fi
done
set +x
</div>

