mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-12-02 01:47:13 +00:00
修复123解析 #123
This commit is contained in:
1 parent
ae0a5644b5
commit
c6603c0d83
5 files changed
+56
-25
No files matched your search
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
# set -x
|
||||
|
||||
# 找到运行中的 Java 进程的 PID
|
||||
PID=$(ps -ef | grep 'netdisk-fast-download.jar' | grep -v grep | awk '{print $2}')
|
||||
|
||||
if [ -z "$PID" ]; then
|
||||
echo "未找到正在运行的进程 netdisk-fast-download.jar"
|
||||
exit 1
|
||||
else
|
||||
# 杀掉进程
|
||||
echo "停止 netdisk-fast-download.jar (PID: $PID)..."
|
||||
kill -9 "$PID"
|
||||
fi
|
||||
Reference in new issue
Block a user