Merge branch 'main' of git.kaiyuancloud.cn:yumoqing/llmengine
This commit is contained in:
commit
3f4ef217d3
12
test/connection/stop.sh
Executable file
12
test/connection/stop.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PORT=8888
|
||||||
|
PID=$(lsof -t -i:$PORT)
|
||||||
|
|
||||||
|
if [ -n "$PID" ]; then
|
||||||
|
echo "找到端口 $PORT 的进程: PID=$PID"
|
||||||
|
kill -9 $PID
|
||||||
|
echo "已终止端口 $PORT 的进程"
|
||||||
|
else
|
||||||
|
echo "未找到端口 $PORT 的进程"
|
||||||
|
fi
|
12
test/entities/stop.sh
Executable file
12
test/entities/stop.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PORT=9990
|
||||||
|
PID=$(lsof -t -i:$PORT)
|
||||||
|
|
||||||
|
if [ -n "$PID" ]; then
|
||||||
|
echo "找到端口 $PORT 的进程: PID=$PID"
|
||||||
|
kill -9 $PID
|
||||||
|
echo "已终止端口 $PORT 的进程"
|
||||||
|
else
|
||||||
|
echo "未找到端口 $PORT 的进程"
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user