goProject/trunk/center/usercenter/stop.sh
皮蛋13361098506 1b77f62820 初始化项目
2025-01-06 16:01:02 +08:00

17 lines
344 B
Bash

#!/bin/bash
# 查找 adminServer 的 PID
PID=$(pgrep adminServer)
if [ -z "$PID" ]; then
echo "adminServer 进程未找到"
else
echo "停止中... (PID: $PID)"
kill $PID
if [ $? -eq 0 ]; then
echo "adminServer 进程已终止 (PID: $PID)"
else
echo "无法终止 adminServer 进程 (PID: $PID)"
fi
fi