部署端口改为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
+1 -1
View File
@@ -33,7 +33,7 @@ MAX_CONCURRENT_TASKS = 2 # 最大并发任务数
HISTORY_LIMIT = 16 # 喂给 LLM 的最近历史步数
HOST = '0.0.0.0'
PORT = int(os.environ.get('PORT', '16051'))
PORT = int(os.environ.get('PORT', '16061'))
for d in (DATA_DIR, TASKS_DIR, LOG_DIR):
os.makedirs(d, exist_ok=True)
+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