mirror of
https://git.oceanpay.cc/danial/kami_jd_ck.git
synced 2025-12-18 22:11:07 +00:00
12 lines
293 B
Bash
12 lines
293 B
Bash
#设置关闭的端口
|
|
port=9999
|
|
#获取此端口运行的进程
|
|
pid=`lsof -t -i:$port`
|
|
#判断如果进程号不为空则,关闭进程
|
|
if test -z "$pid";then
|
|
echo "unidbg 工程未启动!"
|
|
else
|
|
kill -9 $pid
|
|
echo "unidbg 工程进程$pid 关闭成功!"
|
|
fi # 添加了缺失的fi
|