kindergarten_java/stop-all.sh
En 40589f59e7 chore: 重命名项目目录
前后端目录重命名:
- reading-platform-java/ → lesingle-edu-reading-platform-backend/
- reading-platform-frontend/ → lesingle-edu-reading-platform-frontend/

更新相关文件:
- 所有 shell 脚本中的目录引用
- pom.xml 和 application.yml 中的项目名称
- package.json 中的项目名称
- .claude/CLAUDE.md 中的路径引用
- README 文档中的路径引用
2026-03-26 11:31:47 +08:00

40 lines
991 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:8481 > /dev/null 2>&1; then
lsof -ti:8481 | xargs kill -9 2>/dev/null
echo "✅ 后端服务已停止"
else
echo " 后端服务未运行"
fi
# 停止前端
echo "🛑 停止前端服务..."
if lsof -ti:5174 > /dev/null 2>&1; then
lsof -ti:5174 | 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/lesingle-edu-reading-platform-backend.log
rm -f /tmp/lesingle-edu-reading-platform-frontend.log
echo "✅ 日志文件已清理"
fi
echo ""
echo "✅ 所有服务已停止"
echo ""