feat: 添加停止脚本

This commit is contained in:
Cuishibing
2026-04-26 14:47:31 +08:00
parent 384e437440
commit dd5d2fcd70

12
stop.sh Executable file
View File

@@ -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 "服务已停止"