This commit is contained in:
yumoqing 2025-07-30 11:26:48 +08:00
parent 5e65bdb545
commit 1d8647cce9

View File

@ -52,7 +52,7 @@ exit 0
EOF EOF
cat > $cdir/stop.sh <<EOF cat > $cdir/stop.sh <<EOF
PORT=9182 PORT=9182
PID=\$(lsof -t -i:$PORT) PID=\$(lsof -t -i:\$PORT)
if [ -n "\$PID" ]; then if [ -n "\$PID" ]; then
echo "找到端口 $PORT 的进程: PID=\$PID" echo "找到端口 $PORT 的进程: PID=\$PID"