diff --git a/start-all.sh b/start-all.sh index c2ac647..3c94849 100755 --- a/start-all.sh +++ b/start-all.sh @@ -33,7 +33,7 @@ check_port() { } # 检查并停止占用端口的进程 -check_port 8080 "后端" +check_port 8480 "后端" if [ $? -eq 1 ]; then echo "❌ 后端启动取消" exit 1 @@ -73,7 +73,7 @@ echo "📄 日志文件:/tmp/reading-platform-java.log" # 等待后端启动 echo "⏳ 等待后端服务启动..." for i in {1..60}; do - if curl -s http://localhost:8080/actuator/health > /dev/null 2>&1; then + if curl -s http://localhost:8480/actuator/health > /dev/null 2>&1; then echo "✅ 后端服务就绪" break fi @@ -122,9 +122,9 @@ echo "======================================" echo " ✅ 所有服务启动成功!" echo "======================================" echo "" -echo "📍 后端 API: http://localhost:8080" +echo "📍 后端 API: http://localhost:8480" echo "📍 前端页面: http://localhost:5173" -echo "📍 API 文档: http://localhost:8080/api/v1" +echo "📍 API 文档: http://localhost:8480/api/v1" echo "" echo "📊 查看后端日志:tail -f /tmp/reading-platform-java.log" echo "📊 查看前端日志:tail -f /tmp/reading-platform-frontend.log" diff --git a/stop-all.sh b/stop-all.sh index fa49253..a24cc9a 100755 --- a/stop-all.sh +++ b/stop-all.sh @@ -9,8 +9,8 @@ echo "" # 停止后端 echo "🛑 停止后端服务 (Spring Boot)..." -if lsof -ti:8080 > /dev/null 2>&1; then - lsof -ti:8080 | xargs kill -9 2>/dev/null +if lsof -ti:8480 > /dev/null 2>&1; then + lsof -ti:8480 | xargs kill -9 2>/dev/null echo "✅ 后端服务已停止" else echo "ℹ️ 后端服务未运行"