kindergarten_java/stop-all.sh
Claude Opus 4.6 a31921f27f fix: 统一启动脚本端口配置为 8480
- 修改 start-all.sh: 端口检查、健康检查使用 8480
- 修改 stop-all.sh: 停止后端服务使用 8480
- 与 application.yml 中的 SERVER_PORT:8480 保持一致

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 09:55:35 +08:00

40 lines
962 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 统一停止脚本 - 停止前后端服务
echo "======================================"
echo " 停止幼儿阅读教学服务平台"
echo "======================================"
echo ""
# 停止后端
echo "🛑 停止后端服务 (Spring Boot)..."
if lsof -ti:8480 > /dev/null 2>&1; then
lsof -ti:8480 | xargs kill -9 2>/dev/null
echo "✅ 后端服务已停止"
else
echo " 后端服务未运行"
fi
# 停止前端
echo "🛑 停止前端服务..."
if lsof -ti:5173 > /dev/null 2>&1; then
lsof -ti:5173 | xargs kill -9 2>/dev/null
echo "✅ 前端服务已停止"
else
echo " 前端服务未运行"
fi
# 清理日志文件(可选)
read -p "是否清理日志文件?(y/n) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
rm -f /tmp/reading-platform-java.log
rm -f /tmp/reading-platform-frontend.log
echo "✅ 日志文件已清理"
fi
echo ""
echo "✅ 所有服务已停止"
echo ""