From a31921f27fcab8c4b060bda19eec1e1c2a20d286 Mon Sep 17 00:00:00 2001 From: "Claude Opus 4.6" Date: Fri, 20 Mar 2026 09:55:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=9F=E4=B8=80=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E7=AB=AF=E5=8F=A3=E9=85=8D=E7=BD=AE=E4=B8=BA?= =?UTF-8?q?=208480?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 start-all.sh: 端口检查、健康检查使用 8480 - 修改 stop-all.sh: 停止后端服务使用 8480 - 与 application.yml 中的 SERVER_PORT:8480 保持一致 Co-Authored-By: Claude Opus 4.6 --- start-all.sh | 8 ++++---- stop-all.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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 "ℹ️ 后端服务未运行"