commit
This commit is contained in:
22
status.sh
Normal file
22
status.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
# AI MIP 服务状态查看
|
||||
|
||||
echo "=========================================="
|
||||
echo " AI MIP 服务状态"
|
||||
echo "=========================================="
|
||||
|
||||
# 查找进程
|
||||
PID=$(pgrep -f "python main.py")
|
||||
|
||||
if [ -z "$PID" ]; then
|
||||
echo "[INFO] 服务未运行"
|
||||
else
|
||||
echo "[INFO] 服务运行中"
|
||||
echo "[INFO] 进程ID: $PID"
|
||||
echo ""
|
||||
echo "进程详情:"
|
||||
ps aux | grep "python main.py" | grep -v grep
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=========================================="
|
||||
Reference in New Issue
Block a user