bugfix
This commit is contained in:
parent
68840be94b
commit
03578a8edd
16
build.sh
16
build.sh
@ -55,17 +55,13 @@ $cdir/py3/bin/python $cdir/app/sage.py -p 9180 -w $cdir &
|
||||
$cdir/py3/bin/python $cdir/app/sage.py -p 9181 -w $cdir &
|
||||
exit 0
|
||||
EOF
|
||||
cat > $cdir/stop.sh <<EOF
|
||||
PORT=9182
|
||||
PID=\$(lsof -t -i:\$PORT)
|
||||
|
||||
if [ -n "\$PID" ]; then
|
||||
echo "找到端口 $PORT 的进程: PID=\$PID"
|
||||
kill -9 \$PID
|
||||
echo "已终止端口 $PORT 的进程"
|
||||
else
|
||||
echo "未找到端口 $PORT 的进程"
|
||||
fi
|
||||
cat > $cdir/stop.sh <<EOF
|
||||
for p in 9180 8181
|
||||
do
|
||||
PID=\$(lsof -t -i:\$p)
|
||||
kill -9 \$p
|
||||
done
|
||||
EOF
|
||||
chmod +x $cdir/start.sh stop.sh
|
||||
sudo mkdir /var/log/sage
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user