kindergarten_java/stop-all.sh
En de264d3298 refactor(后端): 重构包名从 com.reading.platform 到 com.lesingle.edu
- 修改 pom.xml 中的 groupId
- 移动所有 Java 文件到新包路径 com/lesingle/edu
- 更新所有 Java 文件的 package 和 import 语句 (438 个文件)
- 更新配置文件中的日志包名引用 (application-*.yml, logback-spring.xml)
- 更新 @MapperScan 注解路径
- 更新 CLAUDE.md 文档中的目录结构说明

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-26 12:02:20 +08:00

40 lines
979 B
Bash
Executable File
Raw Permalink 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 ""