diff --git a/02-patch-config.sh b/02-patch-config.sh index b704087..11885cf 100755 --- a/02-patch-config.sh +++ b/02-patch-config.sh @@ -490,10 +490,10 @@ cat > "$MH5_ENV" < **进程数量**:`05-start.sh` 会拉起 **9 个独立操作系统进程**(上表 9 行)。其中 `openim-server` 是 **一个** OpenIM 单二进制,内部包含用户/群组/消息等 RPC 与 API、网关等模块;官方文档或 K8s 部署里常把其中一部分拆成多个 Pod,看起来像「十几个服务」,在本仓库的**单机单进程**模式下合并进同一个 `openim-server`,因此只看到 **1 个 PID**、**2 个对客户端暴露的端口**(10002 + 10001)。 @@ -277,11 +277,11 @@ TENCENT_SDK_SECRET_KEY=xxx > http://:5188 > > # 或显式传入 URL 参数(优先级最高) -> http://:5188?ws=ws://:8000&liveApi=http://:8081 +> http://:5188?ws=ws://:8000&liveApi=http://:8888 > ``` > > - `ws` → meetingmsg 弹幕 WebSocket `:8000` -> - `liveApi` → livestream 直播间 API `:8081` +> - `liveApi` → livestream 直播间 API `:8888` ### Nginx 反代(仅公网 IP,供 PC / 浏览器访问后端) diff --git a/setup.sh b/setup.sh index 3d53277..70bd1af 100755 --- a/setup.sh +++ b/setup.sh @@ -72,7 +72,7 @@ echo " Chat API: http://localhost:10008" echo " Admin API: http://localhost:10009" echo " MeetingMsg WS: ws://localhost:8000" echo " Livecloud: http://localhost:8080" -echo " Livestream: http://localhost:8081" +echo " Livestream: http://localhost:8888" echo "" echo -e "${BOLD}日常命令:${NC}" echo " ./deploy-test/status.sh # 查看全部状态" diff --git a/status.sh b/status.sh index 900d895..f705a2b 100755 --- a/status.sh +++ b/status.sh @@ -42,7 +42,7 @@ print_svc_status "chat-api" ":10008" print_svc_status "admin-api" ":10009" print_svc_status "meetingmsg" ":8000 (WS)" print_svc_status "livecloud" ":8080" -print_svc_status "livestream" ":8081" +print_svc_status "livestream" ":8888" print_svc_status "build-server" ":8281" # ── 前端服务 ───────────────────────────────────────────────────────────────── @@ -69,7 +69,7 @@ done # ── 端口占用检查 ────────────────────────────────────────────────────────────── echo "" echo -e "${BOLD}[ 端口占用 ]${NC}" -PORTS=(10002 10001 10008 10009 8000 8080 8081 8281 5173 5188 3003 8001 8002 8003) +PORTS=(10002 10001 10008 10009 8000 8080 8888 8281 5173 5188 3003 8001 8002 8003) for port in "${PORTS[@]}"; do pid=$(lsof -ti :"$port" 2>/dev/null | head -1 || true) if [[ -n "$pid" ]]; then