From 293c49ee0fe7f4d2c85921ab626d8d1b19cf5c8e Mon Sep 17 00:00:00 2001 From: hz4th_coder Date: Sun, 9 Aug 2026 22:44:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2=E7=AB=AF=E5=8F=A3=E6=94=B9?= =?UTF-8?q?=E4=B8=BA16061=EF=BC=8C=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E5=86=99=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 2 +- start.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config.py b/config.py index c2b765a..7a35b80 100644 --- a/config.py +++ b/config.py @@ -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) diff --git a/start.sh b/start.sh index 1267598..14a8b1c 100755 --- a/start.sh +++ b/start.sh @@ -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