修改常见默认端口

This commit is contained in:
yml2213
2026-08-04 15:34:34 +08:00
parent 68cf35b272
commit 569109cd92
11 changed files with 46 additions and 34 deletions
+4 -3
View File
@@ -21,9 +21,10 @@ install:
# 停止占用默认端口的进程
stop:
@-lsof -tiTCP:8080 -sTCP:LISTEN | xargs kill 2>/dev/null || true
@-lsof -tiTCP:5173 -sTCP:LISTEN | xargs kill 2>/dev/null || true
@echo "已尝试停止 8080 / 5173 端口服务"
@-lsof -tiTCP:18080 -sTCP:LISTEN | xargs kill 2>/dev/null || true
@-lsof -tiTCP:15173 -sTCP:LISTEN | xargs kill 2>/dev/null || true
@-lsof -tiTCP:15432 -sTCP:LISTEN | xargs kill 2>/dev/null || true
@echo "已尝试停止 18080 / 15173 / 15432 端口服务"
# Docker 部署:宿主机只需要 Docker/Compose,前端与后端都在镜像内构建
docker-build: