使用Gunicorn成功在云服务器上部署

This commit is contained in:
rjb
2025-08-24 22:19:28 +08:00
parent 4dfa506bc9
commit fb160a7a31
4 changed files with 323 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ import os
import multiprocessing
# 服务器配置
bind = "0.0.0.0:5000"
bind = "0.0.0.0:5002"
workers = multiprocessing.cpu_count() * 2 + 1
worker_class = "sync"
worker_connections = 1000