#!/bin/bash # 一键启动所有服务 DEPLOY_HOME="/opt/fundplatform/deploy" # 服务启动顺序 SERVICES=( "fund-gateway" "fund-sys" "fund-cust" "fund-proj" "fund-req" "fund-exp" "fund-receipt" "fund-report" "fund-file" ) echo "==========================================" echo " Starting all services..." echo "==========================================" for service in "${SERVICES[@]}"; do if [ -f "${DEPLOY_HOME}/${service}/bin/start.sh" ]; then echo "" echo "Starting ${service}..." ${DEPLOY_HOME}/${service}/bin/start.sh sleep 5 else echo "Warning: ${service}/bin/start.sh not found, skipping..." fi done echo "" echo "==========================================" echo " All services started" echo "==========================================" ${DEPLOY_HOME}/status.sh