部署端口改为16061,修复日志重复写入

This commit is contained in:
2026-08-09 22:44:48 +08:00
parent 12dc9a299f
commit 293c49ee0f
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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