From dd5d2fcd70b71260e27992dcb9c8a52ba3d58f48 Mon Sep 17 00:00:00 2001 From: Cuishibing <643237029@qq.com> Date: Sun, 26 Apr 2026 14:47:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=81=9C=E6=AD=A2?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stop.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 stop.sh diff --git a/stop.sh b/stop.sh new file mode 100755 index 0000000..6ad31b2 --- /dev/null +++ b/stop.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +PID=$(pgrep -f "node src/index.js") + +if [ -z "$PID" ]; then + echo "服务未运行" + exit 1 +fi + +echo "停止服务 (PID: $PID)..." +kill $PID +echo "服务已停止" \ No newline at end of file