import os # 日志配置 # 本地日志存储路径 log_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "logs") if not os.path.exists(log_path): os.makedirs(log_path) loglevel = "info" accesslog = os.path.join(log_path, 'access.log') errorlog = os.path.join(log_path, 'error.log') workers = 5 # 设置工作模式为协程 worker_class = "gevent" bind = "0.0.0.0:5001"