bugfix
This commit is contained in:
parent
311242c953
commit
61c725ec20
@ -9,6 +9,7 @@ git clone https://git.opencomputing.cn/yumoqing/rbac
|
|||||||
git clone https://git.opencomputing.cn/yumoqing/filemgr
|
git clone https://git.opencomputing.cn/yumoqing/filemgr
|
||||||
git clone https://git.opencomputing.cn/yumoqing/rag
|
git clone https://git.opencomputing.cn/yumoqing/rag
|
||||||
git clone https://git.opencomputing.cn/yumoqing/dapi
|
git clone https://git.opencomputing.cn/yumoqing/dapi
|
||||||
|
git clone https://git.opencomputing.cn/yumoqing/kyrag
|
||||||
cd kyrag
|
cd kyrag
|
||||||
cdir=$(pwd)
|
cdir=$(pwd)
|
||||||
uname=$(id -un)
|
uname=$(id -un)
|
||||||
@ -54,11 +55,11 @@ 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"
|
||||||
kill -9 $PID
|
kill -9 \$PID
|
||||||
echo "已终止端口 $PORT 的进程"
|
echo "已终止端口 $PORT 的进程"
|
||||||
else
|
else
|
||||||
echo "未找到端口 $PORT 的进程"
|
echo "未找到端口 $PORT 的进程"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user