部署端口改为16061,修复日志重复写入
This commit is contained in:
@@ -12,13 +12,13 @@ if [ -n "$1" ] && [ "$1" = "stop" ]; then
|
||||
fi
|
||||
|
||||
# 端口占用检查
|
||||
if ss -tlnp 2>/dev/null | grep -q ":16051 "; then
|
||||
echo "⚠️ 端口 16051 已被占用,无法启动!"
|
||||
ss -tlnp | grep ":16051 "
|
||||
if ss -tlnp 2>/dev/null | grep -q ":16061 "; then
|
||||
echo "⚠️ 端口 16061 已被占用,无法启动!"
|
||||
ss -tlnp | grep ":16061 "
|
||||
exit 1
|
||||
fi
|
||||
|
||||
nohup /home/hz1/miniconda3/envs/openclaw/bin/python3 app.py > logs/app.log 2>&1 &
|
||||
echo "✅ webtest-agent 已启动 (PID $!)"
|
||||
sleep 1
|
||||
curl -s http://localhost:16051/health && echo
|
||||
curl -s http://localhost:16061/health && echo
|
||||
Reference in New Issue
Block a user