#!/bin/bash # 查看系统日志 SERVICE=${1:-scheduler} # 默认查看 scheduler echo "📋 查看 $SERVICE 日志 (按 Ctrl+C 退出)" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" echo "" docker compose logs -f --tail 50 $SERVICE