From ee871021ef2b8e69280f1b796e86a56a45080829 Mon Sep 17 00:00:00 2001 From: "Mr.Xia" <1424473282@qq.com> Date: Fri, 27 Feb 2026 10:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E6=94=B9=E6=88=90=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=A4=84=E7=90=86=E7=AB=AF=E5=8F=A3=E5=8D=A0=E7=94=A8=EF=BC=9A?= =?UTF-8?q?start=20=E5=8F=91=E7=8E=B0=202333=20=E8=A2=AB=E5=8D=A0=E7=94=A8?= =?UTF-8?q?=E4=BC=9A=E5=85=88=E6=89=A7=E8=A1=8C=20do=5Fstop=EF=BC=8C?= =?UTF-8?q?=E5=86=8D=E9=87=8D=E8=AF=95=EF=BC=9B=E5=A6=82=E6=9E=9C=E8=BF=98?= =?UTF-8?q?=E5=8D=A0=E7=94=A8=E6=89=8D=E6=8A=A5=E9=94=99=E9=80=80=E5=87=BA?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 13e4290..56a6f0c 100644 --- a/run.sh +++ b/run.sh @@ -41,8 +41,14 @@ function do_start() { PORT_PID=$(lsof -t -i:2333) if [ -n "$PORT_PID" ]; then - printf "${RED}错误: 端口 2333 已被占用,尝试执?stop 后再启动${NC}\n" - return 1 + printf "${YELLOW}?? 2333 ??????????????...${NC}\n" + do_stop + sleep 1 + PORT_PID=$(lsof -t -i:2333) + if [ -n "$PORT_PID" ]; then + printf "${RED}??: ?? 2333 ?????????????????${NC}\n" + return 1 + fi fi printf "${GREEN}?? $PM ?? STARK Todo List (production)...${NC}\n"